Reviewers: ,


Please review this at http://codereview.tryton.org/444001/

Affected files:
  M tryton/gui/window/view_form/model/field.py


Index: tryton/gui/window/view_form/model/field.py
===================================================================

--- a/tryton/gui/window/view_form/model/field.py
+++ b/tryton/gui/window/view_form/model/field.py
@@ -579,7 +579,8 @@
             return []
         for record2 in record.value[self.name]:
             if not (record2.deleted or record2.removed):
-                result.append(record2.get_eval(check_load=check_load))
+                result.append(
+                    record2.get_on_change_value(check_load=check_load))
         return result

     def set(self, record, value, modified=False):
@@ -791,6 +792,15 @@
             record.signal('record-modified')
             record.signal('record-changed')

+    def get_on_change_value(self, record, check_load=True):
+        result = []
+        if record.value.get(self.name) is None:
+            return []
+        for record2 in record.value[self.name]:
+            if not (record2.deleted or record2.removed):
+                result.append(record2.get_eval(check_load=check_load))
+        return result
+

 class ReferenceField(CharField):




--
[email protected] mailing list

Reply via email to