IRC logs of #tryton for Tuesday, 2024-01-09

irc.libera.chat #tryton log beginning Tue Jan 9 12:10:01 AM CET 2024
-!- Pegasus_RPG(~Thunderbi@wsip-184-184-229-74.lv.lv.cox.net) has joined #tryton23:53
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:10
-!- ChanServ changed mode/#tryton -> +o cedk 00:10
-!- springwurm(~springwur@2a01:76c0:104:c700:1010:45f1:406:2cbb) has joined #tryton06:09
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:12
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:24
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton07:37
LordVanhi. Quick question: sale_sale keeps skipping sequence numbers (most notably from 2 all the way to 9 yesterday) .. This seems to be weirdly happening more at the moment.. I would like to find out why it happens and if it is maybe a fult in one of my modules. where would I best put some debugging/trace that would give me meaningful data?07:38
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:58
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton08:25
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:29
-!- ChanServ changed mode/#tryton -> +o cedk 08:29
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:42
-!- dotbit(~dotbit@dotbit.ro) has joined #tryton10:43
-!- springwurm(~springwur@2a01:76c0:104:c700:4e02:7a1e:d0e5:6048) has joined #tryton13:10
LordVanhmm would a "UserError" when going fom draft to quote on sale_sale potentially cause a skipped sale number?14:26
pokoliLordVan: yes, because the transaction is rollback and the number already consumed14:34
LordVancuz set_number is called early14:35
LordVanhmm14:35
LordVanah it is 14:35
LordVanbecause i run super().quote(sales) before my own logic I guess?14:35
LordVanlet me re-check my code if there is any issue without doing my checks first14:36
pokoliLordVan: yes, doing the check before the super call will avoid the empty numbering14:49
LordVansuch a silly mistake that took me a while to figure out14:49
LordVangonna test it, but thanks for the quick answer/explaination :)15:02
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton15:45
-!- Pegasus_RPG(~Thunderbi@169.241.72.12) has joined #tryton19:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:38
-!- ChanServ changed mode/#tryton -> +o cedk 21:38
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:27
-!- ChanServ changed mode/#tryton -> +o cedk 22:27
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:53
-!- ChanServ changed mode/#tryton -> +o cedk 22:53

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