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:
1 parent
adf62ace5a
commit
3a80b3b334
2 files changed
+1
-5
No files matched your search
@@ -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_):
|
||||
|
||||
Reference in new issue
Block a user