irc.libera.chat #tryton log beginning Fri Oct 27 12:10:01 AM CEST 2023 | ||
-!- yangoon(~yangoon@pd9e4ad78.dip0.t-ipconnect.de) has joined #tryton | 03:27 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton | 05:51 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:05 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:05 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton | 06:24 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton | 06:28 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:6e44:7bda:dfcf:3b7e) has joined #tryton | 06:33 | |
mrichez | Hi, Heptapod down ? | 06:36 |
---|---|---|
pokoli | mrichez: Yes, I can not connect to heptapod webpage | 06:38 |
mrichez | :( | 06:38 |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:53 | |
-!- udono(~udo@065-131-067-156.ip-addr.inexio.net) has joined #tryton | 06:58 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:59 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 08:56 | |
-!- acaubet1(~Thunderbi@2a02:9130:fd08:88e4:fd5c:9646:2d86:1993) has joined #tryton | 11:13 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 11:14 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:d654:8bff:fefd:e27e) has joined #tryton | 11:37 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:2efc:3516:b979:d219) has joined #tryton | 12:08 | |
mrichez | hi, can i use "_skip_warnings" context in proteus script ? | 12:24 |
mrichez | i'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 |
pokoli | mrichez: no, you can not because context starting with '_' are private and can only be set from the server | 12:38 |
mrichez | pokoli: ok... so how to bypass such annoying warning ? | 13:01 |
mrichez | i'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 |
mrichez | it's the same code as here: https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/stock/move.py#L952 | 13:59 |
cedk | mrichez: Model has total_ordering, so ordering should be possible | 15:04 |
cedk | unless your stock.move are not actually the same class | 15:05 |
mrichez | cedk: it is the same class, i'm doing the script on tryton 6.8 | 15:14 |
mrichez | cedk: could we imagine (feature) to allow bypass warnings when using proteus ? | 15:15 |
cedk | mrichez: I do not think because it would mean to allow also for other clients | 15:16 |
mrichez | cedk: ok | 15:17 |
cedk | mrichez: maybe you have proteus model instead of trytond model | 15:20 |
mrichez | cedk: yes, proteus model. I could use trytond model in proteus script ? | 15:21 |
cedk | mrichez: no but there is something wrong because at this place it should be trytond model | 15:28 |
mrichez | cedk: here's a part of my code: https://pastebin.com/EEN9kKxF | 15:34 |
cedk | mrichez: ha, you are doing the sort | 15:43 |
mrichez | cedk: yes, no choice to bypass the warning | 15:44 |
cedk | mrichez: you must adapt to sort by id | 15:44 |
mrichez | cedk: ok, will do this way then. Thanks | 15:45 |
cedk | about proteus and warning, I will not be against a context manager that catch warnings and create the record to ignore and relaunch the code | 15:46 |
mrichez | cedk: would be nice | 16:52 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 18:32 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 18:32 | |
-!- yangoon(~yangoon@pd9e4ad78.dip0.t-ipconnect.de) has joined #tryton | 19:44 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!