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 #tryton01:12
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton02:12
-!- yangoon(~mathiasb@93.208.138.189) has joined #tryton03:12
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton03:12
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:12
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton07:12
-!- Timitos(~kpreisler@2001:a61:578:ee01:762b:62ff:fe84:ed7e) has joined #tryton07:12
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton08:12
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton09:12
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton09:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:12
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)10:12
cedkmrichez: see issue993610:12
mrichezcedk: ok thanks10:12
-!- mariomop(~quassel@190.193.24.112) has joined #tryton11:12
-!- ioanp(~ioanp@78-69-28-182-no206.tbcn.telia.com) has joined #tryton12:12
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:12
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/V1bWDRuN16:12
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.16:12
mrichezAny idea ? Thanks.16:12
cedkmrichez: if you are testing on SQLite, this could be because the same id is reused16:12
cedkit is not good to use id as key for a warning at creation (in general in validate)16:12
mrichezcedk: testing with postgresql. What do you suggest instead of id ?17:12
cedkmrichez: something else that identify uniquely the record17:12
cedkit is somehow related to issue558117:12
cedkI'm wondering if we could not have a flag to recongnize record created during the transaction to avoid using their id17:12
mrichezwould be nice17:12
-!- mariomop(~quassel@190.193.24.112) has joined #tryton19:12
-!- rpit(~rpit@p200300c88f4cbb00cea2955fb3b32f1a.dip0.t-ipconnect.de) has joined #tryton21:12

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