changeset fdf2443b558b in tryton:5.4
details: https://hg.tryton.org/tryton?cmd=changeset;node=fdf2443b558b
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 834a6ace3cc8 -r fdf2443b558b 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
@@ -662,7 +662,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