irc.libera.chat #tryton log beginning Tue Dec 6 12:00:01 AM CET 2022 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:42 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:42 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 07:17 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:27 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:11 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 08:11 | |
mrichez | hi, 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 |
---|---|---|
cedk | mrichez: only if the lines have been reassigned (changed) | 08:42 |
mrichez | cedk: 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 working | 08:45 |
mrichez | cedk: maybe it's only client side ? | 08:53 |
cedk | mrichez: you have to do record.lines = record.lines to notify the record that lines have been modified | 09:00 |
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton | 09:02 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 09:04 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 09:05 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 09:05 | |
-!- tbruyere1(~Thunderbi@193.9.114.4) has joined #tryton | 09:10 | |
cedk | mrichez: I wrote https://bugs.tryton.org/issue11933 | 09:12 |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 09:14 | |
mrichez | cedk: here's a small example not working: https://pastebin.com/XXUKdvMa | 09:18 |
cedk | mrichez: yes it is expected as there is no assignation | 09:19 |
mrichez | cedk: what should i add to save line when saving model? | 09:19 |
cedk | mrichez: reassign the lines | 09:19 |
mrichez | cedk: self.line = self ? | 09:20 |
mrichez | cedk: invoice.lines = ... | 09:21 |
cedk | mrichez: yes reassign the lines | 09:22 |
mrichez | cedk: ok thanks | 09:22 |
-!- nicoe(~nicoe@2a02:2788:54:1ff:224:9bff:fe6c:a1b2) has joined #tryton | 12:21 | |
-!- rpit(~rpit@p200300c88f35d0008b509f4d786e7481.dip0.t-ipconnect.de) has joined #tryton | 13:03 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 13:16 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:224:9bff:fe6c:a1b2) has joined #tryton | 13:58 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton | 19:10 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton | 21:33 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!