3
0
Fork 0

[IMP] also make the module work for many2many fields

8.0
Holger Brunn 2019-03-07 10:52:11 +01:00
parent d47afaef37
commit 517baff395
1 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,16 @@ openerp.web_action_conditionable = function (instance) {
},
});
instance.web.form.Many2ManyListView.include({
is_action_enabled: function(action) {
if (action in this.fields_view.arch.attrs) {
return (new instance.web.View()).is_action_enabled.apply(
this, arguments
);
}
return true;
},
});
instance.web.FormView.include({
init: function() {
this._super.apply(this, arguments);