[FIX] project: Fix edit button in forms views

since https://github.com/odoo/odoo/pull/79947 edit buttons in forms views `o_form_buttons_view` are invisible
This is due to the missing super call in on_attach_callback and on_detach_callback

closes odoo/odoo#81876

X-original-commit: ffd69e306e501c32bf688614d1fbd70bd5f406ac
Related: odoo/enterprise#23089
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
Achraf (abz)
2021-12-23 17:35:50 +00:00
parent 197b7eddd7
commit 3784a90fd5
@@ -9,6 +9,7 @@ import viewRegistry from 'web.view_registry';
const ProjectFormController = FormController.extend({
on_attach_callback() {
this._super(...arguments);
if (!device.isMobile) {
bus.on("DOM_updated", this, this._onDomUpdated);
}
@@ -22,6 +23,7 @@ const ProjectFormController = FormController.extend({
}
},
on_detach_callback() {
this._super(...arguments);
bus.off('DOM_updated', this._onDomUpdated);
},
_getActionMenuItems(state) {