IRC logs of #tryton for Thursday, 2020-12-17

chat.freenode.net #tryton log beginning Thu Dec 17 12:00:01 AM CET 2020
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:03
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton01:30
-!- yangoon(~mathiasb@93.208.138.189) has joined #tryton02:06
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton02:10
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:53
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton06:04
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton06:42
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton07:39
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton08:08
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:04
mrichezhi, got an error on tryton gui tip version when creating new record on empty model: AttributeError: 'NoneType' object has no attribute 'id' (seems linked to issue9881)09:48
cedkmrichez: see issue993609:57
mrichezcedk: ok thanks09:58
-!- mariomop(~quassel@190.193.24.112) has joined #tryton10:49
-!- ioanp(~ioanp@78-69-28-182-no206.tbcn.telia.com) has joined #tryton11:35
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:07
mrichezhi, need some help. I'm doing a validate to raise a warning if length of char field is longer than 20 chars. Here's my code : https://pastebin.com/V1bWDRuN15:15
mrichezWhen testing, with char field longer than  20 char, Warning message is looping when clicking "Yes". If i reduce field char length under 20 chars, then i save (no warning). Then if add characters for having a length > 20, Warning message is just displayed once.15:18
mrichezAny idea ? Thanks.15:18
cedkmrichez: if you are testing on SQLite, this could be because the same id is reused15:47
cedkit is not good to use id as key for a warning at creation (in general in validate)15:47
mrichezcedk: testing with postgresql. What do you suggest instead of id ?16:24
cedkmrichez: something else that identify uniquely the record16:40
cedkit is somehow related to issue558116:43
cedkI'm wondering if we could not have a flag to recongnize record created during the transaction to avoid using their id16:44
mrichezwould be nice16:44
-!- mariomop(~quassel@190.193.24.112) has joined #tryton18:59
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton20:48

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!