irc.libera.chat #tryton log beginning Wed Aug 18 12:00:01 AM CEST 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 05:07 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 05:07 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 06:04 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 06:39 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:44 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:44 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 07:21 | |
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton | 07:24 | |
mrichez | hi, how to skip warnings in a proteus script ? i did this way: with config.set_context(_skip_warnings=True): Move.click(moves, 'do') | 07:25 |
---|---|---|
mrichez | but this is not working :( | 07:25 |
cedk | mrichez: it is forbidden to set private context (starting with _) | 07:30 |
mrichez | cedk: ok, so how to bypass? | 07:31 |
cedk | mrichez: you must retrieve the warning key and store it to ignore | 07:31 |
mrichez | cedk: ok, will try... thanks! | 07:35 |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 08:30 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 09:06 | |
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton | 09:38 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 09:47 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 10:08 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 10:18 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 10:24 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 10:44 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 10:54 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 11:10 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 11:10 | |
mrichez | hi, still struggling to bypass warning in proteus... i did this way but got always warning: | 11:13 |
mrichez | https://pastebin.com/5mGBmpmL | 11:14 |
pokoli | mrichez: are you creating new moves eah run? | 11:17 |
mrichez | yes new moves | 11:18 |
pokoli | mrichez: which is the value of e.faultString? | 11:18 |
cedk | mrichez: you should save them first otherwise the key is different on each call | 11:19 |
mrichez | Stock moves "638u ALO/014.000/025, 365u ALO/022.225/025, 5u ALO/022.225/025, 368u ALO/009.200/025, 24u VIT/082.000/80..." have no origin. - | 11:19 |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 11:19 | |
mrichez | moves are saved before | 11:19 |
pokoli | mrichez: warning_name should be https://hg.tryton.org/modules/stock/file/9119f03fb1cc/move.py#l888 | 11:20 |
mrichez | pokoli: how can i call such fonction in proteus ? | 11:21 |
pokoli | mrichez: maybe code from 6.0 is cleared: https://hg.tryton.org/modules/stock/file/6.0/move.py#l878 | 11:21 |
pokoli | mrichez: you can not call it from proteus | 11:21 |
pokoli | mrichez: indeed you should be able to get the warning name from the exception.args https://hg.tryton.org/tryton/file/c25c1b385cb9/tryton/common/common.py#l918 | 11:23 |
mrichez | can't catch the exception | 11:24 |
mrichez | i tried with try except MoveOriginWarning but this it not working | 11:25 |
mrichez | i got an xmlrpc.client.Fault | 11:25 |
mrichez | any example of bypassing a warning with proteus ? | 11:27 |
cedk | mrichez: in scenario_account_stock_shipment_cost.rst | 11:28 |
mrichez | cedk: yes, i saw it | 11:28 |
cedk | mrichez: but catching exception by type can only work with set_trytond not set_xmlrpc | 11:28 |
mrichez | cedk: oh... i'm using set_xmlrpc | 11:29 |
mrichez | cedk: so there's no solution in my case ? | 11:29 |
cedk | mrichez: except construct yourself the key | 11:30 |
cedk | the XML-RPC exception has only a code and a string so we can not pass more data | 11:31 |
mrichez | i'll try again... | 11:31 |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 12:00 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 12:01 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:06 | |
mrichez | ok, now i bypass warning :-) but Move.click(moves, 'do') is not working... | 12:12 |
mrichez | forget, after doing https://hg.tryton.org/modules/stock/file/d881e38970a9/move.py#l854 , moves is empty | 12:18 |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 12:21 | |
-!- udono(~udono@143-136-067-156.ip-addr.inexio.net) has joined #tryton | 12:28 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 12:52 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 13:02 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 13:32 | |
mrichez | Creation of warning key to bypass MoveOriginWarning is quite complex... and when trying to reproduce the same method in proteus, got an error on "moves = sorted(filter...)" : TypeError: '<' not supported between instances of 'stock.move' and 'stock.move' | 13:34 |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 13:48 | |
-!- jonlevy_(~jonlevy@47.196.164.70) has joined #tryton | 13:49 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 13:58 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 14:03 | |
-!- jonlevy__(~jonlevy@47.196.164.70) has joined #tryton | 14:13 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 14:14 | |
-!- catonano(~catonano@151.50.188.236) has joined #tryton | 14:44 | |
-!- jonlevy_(~jonlevy@static-47-206-207-100.tamp.fl.frontiernet.net) has joined #tryton | 15:01 | |
-!- jonlevy_(~jonlevy@static-47-206-207-100.tamp.fl.frontiernet.net) has joined #tryton | 15:02 | |
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton | 17:49 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 20:59 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 20:59 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!