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
This commit is contained in:
1 parent
97ec32b147
commit
04ec79e93a
1 file changed
+4
-1
@@ -557,7 +557,10 @@ class Form(SignalEvent, TabContent):
|
||||
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user