changeset 317b470730af in proteus:4.6
details: https://hg.tryton.org/proteus?cmd=changeset;node=317b470730af
description:
        Always skip id in _get_on_change_values

        issue8234
        (grafted from ae3d2b867373747fb5f45d3b1640e24a790a483c)
diffstat:

 proteus/__init__.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r c087769ebe2c -r 317b470730af proteus/__init__.py
--- a/proteus/__init__.py       Tue Oct 01 22:54:31 2019 +0200
+++ b/proteus/__init__.py       Mon Apr 08 10:34:48 2019 +0200
@@ -948,8 +948,10 @@
         else:
             definitions = self._fields.iteritems()
         for field, definition in definitions:
+            if field == 'id':
+                continue
             if not fields:
-                if field == 'id' or (skip and field in skip):
+                if skip and field in skip:
                     continue
                 if (self.id >= 0
                         and (field not in self._values

Reply via email to