IRC logs of #tryton for Tuesday, 2022-12-06

irc.libera.chat #tryton log beginning Tue Dec 6 12:00:01 AM CET 2022
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:42
-!- ChanServ changed mode/#tryton -> +o cedk 23:42
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:17
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:27
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:11
-!- ChanServ changed mode/#tryton -> +o cedk 08:11
mrichezhi, when saving a model with lines, doing a cls.save(model) will also save lines ? because i'm setting a value on a field of the line, and this field is not saved.08:16
cedkmrichez: only if the lines have been reassigned (changed)08:42
mrichezcedk: hum, i'm doing a loop on the lines to set a value for a field (with a method) then saving the model... but not working08:45
mrichezcedk: maybe it's only client side ? 08:53
cedkmrichez: you have to do record.lines = record.lines to notify the record that lines have been modified09:00
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton09:02
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton09:04
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton09:05
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton09:05
-!- tbruyere1(~Thunderbi@193.9.114.4) has joined #tryton09:10
cedkmrichez: I wrote https://bugs.tryton.org/issue1193309:12
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton09:14
mrichezcedk: here's a small example not working: https://pastebin.com/XXUKdvMa09:18
cedkmrichez: yes it is expected as there is no assignation09:19
mrichezcedk: what should i add to save line when saving model?09:19
cedkmrichez: reassign the lines09:19
mrichezcedk: self.line = self ?09:20
mrichezcedk: invoice.lines = ... 09:21
cedkmrichez: yes reassign the lines09:22
mrichezcedk: ok thanks09:22
-!- nicoe(~nicoe@2a02:2788:54:1ff:224:9bff:fe6c:a1b2) has joined #tryton12:21
-!- rpit(~rpit@p200300c88f35d0008b509f4d786e7481.dip0.t-ipconnect.de) has joined #tryton13:03
-!- springwurm(~springwur@5.104.149.54) has joined #tryton13:16
-!- nicoe(~nicoe@2a02:2788:54:1ff:224:9bff:fe6c:a1b2) has joined #tryton13:58
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton19:10
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton21:33

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