changeset 2e64570bb195 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=2e64570bb195
description:
        Include id as argument of pre_validate calls

        It is needed by the server to get value of field not modified.

        issue10014
        review327031002
diffstat:

 tryton/gui/window/view_form/model/record.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8e13d64f983f -r 2e64570bb195 tryton/gui/window/view_form/model/record.py
--- a/tryton/gui/window/view_form/model/record.py       Mon Jan 25 22:13:11 
2021 +0100
+++ b/tryton/gui/window/view_form/model/record.py       Fri Jan 29 00:04:29 
2021 +0100
@@ -316,7 +316,7 @@
     def pre_validate(self):
         if not self.modified_fields:
             return True
-        values = self._get_on_change_args(self.modified_fields)
+        values = self._get_on_change_args(['id'] + list(self.modified_fields))
         try:
             RPCExecute('model', self.model_name, 'pre_validate', values,
                 context=self.get_context())

Reply via email to