Only set the value on the current view of One2Many when the form set values

If the current view is a form view, we need to ensure that the values are
actually set for all the widgets.
This commit is contained in:
Cédric Krier
2026-04-16 22:48:34 +02:00
parent 886a463adb
commit a973cdd9f8
2 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -3967,9 +3967,7 @@ function eval_pyson(value){
return prm;
},
set_value: function() {
if (this.screen.modified()) { // TODO check if required
this.view.screen.record_modified(false);
}
this.screen.current_view.set_value();
},
_update_completion: function(text) {
if (!this.record) {
@@ -584,8 +584,6 @@ class One2Many(Widget):
def set_value(self):
self.screen.current_view.set_value()
if self.screen.modified(): # TODO check if required
self.view.screen.record_modified(display=False)
return True
def _completion_match_selected(self, completion, model, iter_):