IRC logs of #tryton for Friday, 2021-11-26

irc.libera.chat #tryton log beginning Fri Nov 26 12:00:01 AM CET 2021
-!- NoGare(~NoGare@node5.ranni.ca) has joined #tryton03:14
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton06:05
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:10
-!- springwurm(~springwur@5.104.149.54) has joined #tryton06:13
-!- udono(~udono@135-154-117-131.ip-addr.inexio.net) has joined #tryton07:31
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:51
-!- rpit(~rpit@p4ffb79f9.dip0.t-ipconnect.de) has joined #tryton08:06
mrichezHi, need some help with an error when creating new object from a model: AttributeError: 'purchase.blanket_order.line.to.purchase.line._reco' object has no attribute 'items'09:37
-!- rs[m](~rsinframa@2001:470:69fc:105::ea2) has joined #tryton09:37
mrichezdon't know which is "_reco" 09:37
pokolimrichez: could you post (using pastebin or similar) the full traceback? 09:58
mrichezpokoli: https://pastebin.com/t3230twU10:02
mrichezpokoli: and my code: https://pastebin.com/mfRfYRQQ10:03
mrichezpokoli: problem is setting default values on wizard10:03
mrichezpokoli: working when doing this : https://pastebin.com/m45NrizB10:22
udonomrichez: did you try with:  for line.id in self.record.lines …?10:48
mrichezudono: no.. but after i need attributes on line... and don't know why it's working this way: https://pastebin.com/m45NrizB10:52
mrichezudono: it seems i can't have an instance of Line 10:52
udonomrichez: you already tried with 'line': line.id?10:54
cedkmrichez: I do not think default method on wizard support to use instances10:54
mrichezudono: yes10:54
mrichezcedk: would be explanation :-)10:55
cedkI guess you should call _changed_values10:55
udonohttps://discuss.tryton.org/t/migration-from-5-8-to-6-0/360310:58
udonoups, sorry wrong channel :-)10:59
mrichezcedk: thanks12:40
-!- springwurm(~springwur@5.104.149.54) has joined #tryton13:14
-!- sergyo(~sergyo@23.103.15.37.dynamic.jazztel.es) has joined #tryton15:25

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