Subject: changeset in sao:4.4 Do not prevent to reset X2Many widget when no record is linked to the form From: Nicolas Évrard <[email protected]>
changeset f3e113c7500c in sao:4.4 details: https://hg.tryton.org/sao?cmd=changeset;node=f3e113c7500c description: Do not prevent to reset X2Many widget when no record is linked to the form It can occur when for example, you delete a record. The current code skipped the reset of the widget which made it stays filled. (grafted from 2062dcd560dbf4b32fe58fa15c9a7b4ecdc7b762) diffstat: src/view/form.js | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diffs (23 lines): diff -r 50a1fe3d1252 -r f3e113c7500c src/view/form.js --- a/src/view/form.js Thu Jan 17 17:17:17 2019 +0100 +++ b/src/view/form.js Wed Jan 23 14:37:31 2019 +0100 @@ -2599,9 +2599,6 @@ this._set_button_sensitive(); this.prm.done(function() { - if (!record) { - return; - } if (field === undefined) { this.screen.new_group(); this.screen.set_current_record(null); @@ -2984,9 +2981,6 @@ Sao.View.Form.Many2Many._super.display.call(this, record, field); this.prm.done(function() { - if (!record) { - return; - } if (field === undefined) { this.screen.new_group(); this.screen.set_current_record(null);
