changeset 54026b016e7c in proteus:4.4
details: https://hg.tryton.org/proteus?cmd=changeset;node=54026b016e7c
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 ae4b19bca2f7 -r 54026b016e7c 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
@@ -914,8 +914,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