mirror of https://github.com/OCA/web.git
[MIG] web_action_conditionable: Migration to 18.0
parent
835952cda3
commit
204bebc5a4
|
@ -1,7 +1,7 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
"name": "web_action_conditionable",
|
||||
"version": "17.0.1.0.0",
|
||||
"version": "18.0.1.0.0",
|
||||
"depends": ["base", "web"],
|
||||
"data": [],
|
||||
"author": "Cristian Salamea,Odoo Community Association (OCA)",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/** @odoo-module **/
|
||||
/* global console */
|
||||
import {X2ManyField} from "@web/views/fields/x2many/x2many_field";
|
||||
import {evaluateExpr} from "@web/core/py_js/py";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
@ -25,12 +26,13 @@ patch(X2ManyField.prototype, {
|
|||
expr,
|
||||
self.props.record.data
|
||||
);
|
||||
} catch (ignored) {
|
||||
console.log(
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
"[web_action_conditionable] unrecognized expr '" +
|
||||
expr +
|
||||
"', ignoring"
|
||||
);
|
||||
console.warn(error);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue