forked from Techsystech/web
Check if buttons are set in case we are in a popup window
parent
400030f06a
commit
bad95ccf02
|
@ -35,6 +35,7 @@ odoo.define('web_access_rule_buttons.main', function (require) {
|
|||
},
|
||||
|
||||
show_hide_edit_button: function(access) {
|
||||
if (this.$buttons) {
|
||||
var button = this.$buttons.find('.oe_form_button_edit');
|
||||
if(access) {
|
||||
button.removeAttr('disabled');
|
||||
|
@ -42,6 +43,7 @@ odoo.define('web_access_rule_buttons.main', function (require) {
|
|||
button.attr('disabled', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue