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

irc.libera.chat #tryton log beginning Wed Dec 8 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:54
-!- ChanServ changed mode/#tryton -> +o cedk 23:54
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton06:47
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- ChanServ changed mode/#tryton -> +o cedk 08:09
-!- rpit(~rpit@p4ffb79f9.dip0.t-ipconnect.de) has joined #tryton08:14
-!- udono(~udono@197-154-117-131.ip-addr.inexio.net) has joined #tryton10:06
-!- sharkcz(~sharkcz@19.161.broadband4.iol.cz) has joined #tryton11:35
-!- springwurm(~springwur@5.104.149.54) has joined #tryton13:02
mrichezHi, 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
mrichezblanket_agreement_line is a field Many2One on purchase_line14:38
mrichezdon't understand why error is about missing "_parent"... ?14:39
mrichezhere's a part of my code: https://pastebin.com/nWZihqvJ14:41
cedkmrichez: 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_change14:56
mrichezcedk: indeed there is a One2Many with readonly="True"14:58
mrichezcedk: ok working when adding _parent_blanket_agreement_line for each field involved i "on_change" method... Thanks!15:11
cedkmrichez: the generic test does not care about the readonly of the field15:59
cedkbecause a One2Many even readonly can still be edited and so requiring the parent values15:59
-!- timitos(~kpreisler@134.3.92.37) has joined #tryton16:29
mrichezcedk: thanks for explanations20:15
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21: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/!