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:
@@ -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_):
|
||||
|
||||
Reference in New Issue
Block a user