From d64b70cce2cde644f14f5972f7027dde0702c5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 29 Jan 2021 00:04:29 +0100 Subject: [PATCH] Include id as argument of pre_validate calls It is needed by the server to get value of field not modified. issue10014 review327031002 --- tryton/gui/window/view_form/model/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index aeadf20f8d..1edac273bd 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -316,7 +316,7 @@ class Record(SignalEvent): 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())