changeset f7a28aca4840 in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=f7a28aca4840
description:
        Mark as modified when default is a list of ids

        Otherwise they are not sent to the server because only modified record 
are
        sent since issue6754.

        issue9479
        review308441002
        (grafted from c69914d7eef7acac6afc2795e2a571896afdf270)
diffstat:

 tryton/gui/window/view_form/model/field.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9990c3ed2cfd -r f7a28aca4840 tryton/gui/window/view_form/model/field.py
--- a/tryton/gui/window/view_form/model/field.py        Mon Oct 26 21:28:47 
2020 +0100
+++ b/tryton/gui/window/view_form/model/field.py        Wed Oct 28 23:56:28 
2020 +0100
@@ -640,7 +640,7 @@
             for old_record in group:
                 if old_record.id not in value:
                     group.remove(old_record, remove=True, signal=False)
-            group.load(value, modified=modified)
+            group.load(value, modified=modified or default)
         else:
             for vals in value:
                 new_record = record.value[self.name].new(default=False)

Reply via email to