irc.libera.chat #tryton log beginning Wed Dec 8 12:00:01 AM CET 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:54 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:54 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 06:47 | |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 06:48 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:09 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 08:09 | |
-!- rpit(~rpit@p4ffb79f9.dip0.t-ipconnect.de) has joined #tryton | 08:14 | |
-!- udono(~udono@197-154-117-131.ip-addr.inexio.net) has joined #tryton | 10:06 | |
-!- sharkcz(~sharkcz@19.161.broadband4.iol.cz) has joined #tryton | 11:35 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 13:02 | |
mrichez | Hi, need some help. When doing tests on module purchase_agreement got this error : Missing "_parent_blanket_agreement_line" in "purchase.line"."blanket_agreement_line"."on_change" | 14:37 |
---|---|---|
mrichez | blanket_agreement_line is a field Many2One on purchase_line | 14:38 |
mrichez | don't understand why error is about missing "_parent"... ? | 14:39 |
mrichez | here's a part of my code: https://pastebin.com/nWZihqvJ | 14:41 |
cedk | mrichez: normally it is because there is a reverse One2Many defined so we need to tell the client if the record is edited from this One2Many what value to send for the on_change | 14:56 |
mrichez | cedk: indeed there is a One2Many with readonly="True" | 14:58 |
mrichez | cedk: ok working when adding _parent_blanket_agreement_line for each field involved i "on_change" method... Thanks! | 15:11 |
cedk | mrichez: the generic test does not care about the readonly of the field | 15:59 |
cedk | because a One2Many even readonly can still be edited and so requiring the parent values | 15:59 |
-!- timitos(~kpreisler@134.3.92.37) has joined #tryton | 16:29 | |
mrichez | cedk: thanks for explanations | 20:15 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:27 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 21:27 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!