IRC logs of #tryton for Friday, 2023-10-27

irc.libera.chat #tryton log beginning Fri Oct 27 12:10:01 AM CEST 2023
-!- yangoon(~yangoon@pd9e4ad78.dip0.t-ipconnect.de) has joined #tryton03:27
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton05:51
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:05
-!- ChanServ changed mode/#tryton -> +o cedk 06:05
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton06:24
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton06:28
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton06:33
mrichezHi, Heptapod down ?06:36
pokolimrichez: Yes, I can not connect to heptapod webpage06:38
mrichez:(06:38
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:53
-!- udono(~udo@065-131-067-156.ip-addr.inexio.net) has joined #tryton06:58
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:59
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton08:56
-!- acaubet1(~Thunderbi@2a02:9130:fd08:88e4:fd5c:9646:2d86:1993) has joined #tryton11:13
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton11:14
-!- nicoe(~nicoe@2a02:578:852a:c00:d654:8bff:fefd:e27e) has joined #tryton11:37
-!- springwurm(~springwur@2a01:76c0:100:f500:2efc:3516:b979:d219) has joined #tryton12:08
mrichezhi, can i use "_skip_warnings" context in proteus script ? 12:24
mrichezi'm doing stock moves from Supplier to specific storage location to define an initial stock , but i always get Intrastat Warnings about unknown country....  12:33
pokolimrichez: no, you can not because context starting with '_' are private and can only be set from the server12:38
mrichezpokoli: ok... so how to bypass such annoying warning ?13:01
mrichezi'm creating the warning to bypass moves without origin and i'm getting this error when doing  moves = sorted(filter(no_origin, moves)) : TypeError: '<' not supported between instances of 'stock.move' and 'stock.move'13:57
mrichezit's the same code as here: https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/stock/move.py#L95213:59
cedkmrichez: Model has total_ordering, so ordering should be possible15:04
cedkunless your stock.move are not actually the same class15:05
mrichezcedk: it is the same class, i'm doing the script on tryton 6.815:14
mrichezcedk: could we imagine (feature) to allow bypass warnings when using proteus ?15:15
cedkmrichez: I do not think because it would mean to allow also for other clients15:16
mrichezcedk: ok 15:17
cedkmrichez: maybe you have proteus model instead of trytond model15:20
mrichezcedk: yes, proteus model. I could use trytond model in proteus script ?15:21
cedkmrichez: no but there is something wrong because at this place it should be trytond model15:28
mrichezcedk: here's a part of my code: https://pastebin.com/EEN9kKxF15:34
cedkmrichez: ha, you are doing the sort15:43
mrichezcedk: yes, no choice to bypass the warning15:44
cedkmrichez: you must adapt to sort by id15:44
mrichezcedk: ok, will do this way then. Thanks15:45
cedkabout proteus and warning, I will not be against a context manager that catch warnings and create the record to ignore and relaunch the code15:46
mrichezcedk: would be nice16:52
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton18:32
-!- ChanServ changed mode/#tryton -> +o cedk 18:32
-!- yangoon(~yangoon@pd9e4ad78.dip0.t-ipconnect.de) has joined #tryton19:44

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