diff --git a/addons/account/static/src/components/actionable_errors/actionable_errors.js b/addons/account/static/src/components/actionable_errors/actionable_errors.js index 87db1d567fe..5eaa6b741d9 100644 --- a/addons/account/static/src/components/actionable_errors/actionable_errors.js +++ b/addons/account/static/src/components/actionable_errors/actionable_errors.js @@ -3,21 +3,11 @@ import { registry } from "@web/core/registry"; import { Component } from "@odoo/owl"; import { standardFieldProps } from "@web/views/fields/standard_field_props"; -import { useRecordObserver } from "@web/model/relational_model/utils"; export class ActionableErrors extends Component { static props = { ...standardFieldProps }; static template = "account.ActionableErrors"; - setup() { - useRecordObserver(this.formatData.bind(this)); - } - - formatData(record) { - const errorsField = record.data[this.props.name]; - this.errorsData = JSON.parse(JSON.stringify(errorsField)); - } - async handleOnClick(errorData){ this.env.model.action.doAction(errorData.action); } diff --git a/addons/account/static/src/components/actionable_errors/actionable_errors.xml b/addons/account/static/src/components/actionable_errors/actionable_errors.xml index 14d619208e7..3877538c639 100644 --- a/addons/account/static/src/components/actionable_errors/actionable_errors.xml +++ b/addons/account/static/src/components/actionable_errors/actionable_errors.xml @@ -1,9 +1,9 @@ - +