mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] also make the module work for many2many fields
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user