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

        issue8234
diffstat:

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

diffs (15 lines):

diff -r 77538036abab -r ae3d2b867373 proteus/__init__.py
--- a/proteus/__init__.py       Mon Apr 08 10:14:39 2019 +0200
+++ b/proteus/__init__.py       Mon Apr 08 10:34:48 2019 +0200
@@ -973,8 +973,10 @@
         else:
             definitions = self._fields.items()
         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