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.
(grafted from c91abeb5bcc1bcb4d8c7c96b610fb142637661aa)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2026-04-16 22:48:34 +02:00
1 parent adf62ace5a
commit 3a80b3b334
2 files changed
+1 -5

No files matched your search

+1 -3
View File
@@ -3756,9 +3756,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) {
@@ -558,8 +558,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_):