changeset 6cdea0d8ac5c in tryton:default details: https://hg.tryton.org/tryton?cmd=changeset;node=6cdea0d8ac5c description: Succeed when save modified is canceled on unique new record
The reload does not set any current record so we can not compare ids. issue9936 review314991002 diffstat: tryton/gui/window/form.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diffs (15 lines): diff -r ce226bdb290c -r 6cdea0d8ac5c tryton/gui/window/form.py --- a/tryton/gui/window/form.py Sat Dec 19 17:08:47 2020 +0100 +++ b/tryton/gui/window/form.py Wed Dec 23 21:26:32 2020 +0100 @@ -557,7 +557,10 @@ if value == 'ko': record_id = self.screen.current_record.id if self.sig_reload(test_modified=False): - return record_id == self.screen.current_record.id + if self.screen.current_record: + return record_id == self.screen.current_record.id + elif record_id < 0: + return True return False return True