IRC logs of #tryton for Wednesday, 2021-08-18

irc.libera.chat #tryton log beginning Wed Aug 18 12:00:01 AM CEST 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton05:07
-!- ChanServ changed mode/#tryton -> +o cedk 05:07
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton06:04
-!- catonano(~catonano@151.50.188.236) has joined #tryton06:39
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:44
-!- ChanServ changed mode/#tryton -> +o cedk 06:44
-!- catonano(~catonano@151.50.188.236) has joined #tryton07:21
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton07:24
mrichezhi, 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
mrichezbut this is not working :(07:25
cedkmrichez: it is forbidden to set private context (starting with _)07:30
mrichezcedk: ok, so how to bypass?07:31
cedkmrichez: you must retrieve the warning key and store it to ignore07:31
mrichezcedk: ok, will try... thanks!07:35
-!- catonano(~catonano@151.50.188.236) has joined #tryton08:30
-!- catonano(~catonano@151.50.188.236) has joined #tryton09:06
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton09:38
-!- catonano(~catonano@151.50.188.236) has joined #tryton09:47
-!- catonano(~catonano@151.50.188.236) has joined #tryton10:08
-!- catonano(~catonano@151.50.188.236) has joined #tryton10:18
-!- catonano(~catonano@151.50.188.236) has joined #tryton10:24
-!- catonano(~catonano@151.50.188.236) has joined #tryton10:44
-!- catonano(~catonano@151.50.188.236) has joined #tryton10:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:10
-!- ChanServ changed mode/#tryton -> +o cedk 11:10
mrichezhi, still struggling to bypass warning in proteus... i did this way but got always warning:11:13
mrichezhttps://pastebin.com/5mGBmpmL11:14
pokolimrichez: are you creating new moves eah run?11:17
mrichezyes new moves 11:18
pokolimrichez: which is the value of e.faultString?11:18
cedkmrichez: you should save them first otherwise the key is different on each call11:19
mrichezStock 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 #tryton11:19
mrichezmoves are saved before11:19
pokolimrichez: warning_name should be https://hg.tryton.org/modules/stock/file/9119f03fb1cc/move.py#l88811:20
mrichezpokoli: how can i call such fonction in proteus ?11:21
pokolimrichez: maybe code from 6.0 is cleared: https://hg.tryton.org/modules/stock/file/6.0/move.py#l87811:21
pokolimrichez: you can not call it from proteus11:21
pokolimrichez: 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#l91811:23
mrichezcan't catch the exception11:24
mrichezi tried with try except MoveOriginWarning but this it not working11:25
mrichezi got an xmlrpc.client.Fault11:25
mrichezany example of bypassing a warning with proteus ?11:27
cedkmrichez: in scenario_account_stock_shipment_cost.rst11:28
mrichezcedk: yes, i saw it11:28
cedkmrichez: but catching exception by type can only work with set_trytond not set_xmlrpc11:28
mrichezcedk: oh... i'm using set_xmlrpc11:29
mrichezcedk: so there's no solution in my case ?11:29
cedkmrichez: except construct yourself the key11:30
cedkthe XML-RPC exception has only a code and a string so we can not pass more data11:31
mrichezi'll try again... 11:31
-!- catonano(~catonano@151.50.188.236) has joined #tryton12:00
-!- catonano(~catonano@151.50.188.236) has joined #tryton12:01
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:06
mrichezok, now i bypass warning  :-) but Move.click(moves, 'do') is not working... 12:12
mrichezforget, after doing https://hg.tryton.org/modules/stock/file/d881e38970a9/move.py#l854 , moves is empty12:18
-!- catonano(~catonano@151.50.188.236) has joined #tryton12:21
-!- udono(~udono@143-136-067-156.ip-addr.inexio.net) has joined #tryton12:28
-!- catonano(~catonano@151.50.188.236) has joined #tryton12:52
-!- catonano(~catonano@151.50.188.236) has joined #tryton13:02
-!- catonano(~catonano@151.50.188.236) has joined #tryton13:32
mrichezCreation 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 #tryton13:48
-!- jonlevy_(~jonlevy@47.196.164.70) has joined #tryton13:49
-!- catonano(~catonano@151.50.188.236) has joined #tryton13:58
-!- catonano(~catonano@151.50.188.236) has joined #tryton14:03
-!- jonlevy__(~jonlevy@47.196.164.70) has joined #tryton14:13
-!- catonano(~catonano@151.50.188.236) has joined #tryton14:14
-!- catonano(~catonano@151.50.188.236) has joined #tryton14:44
-!- jonlevy_(~jonlevy@static-47-206-207-100.tamp.fl.frontiernet.net) has joined #tryton15:01
-!- jonlevy_(~jonlevy@static-47-206-207-100.tamp.fl.frontiernet.net) has joined #tryton15:02
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton17:49
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20: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/!