[MIG] web_action_conditionable: Migration to 18.0

pull/3063/head
kobros-tech 2025-03-11 23:45:00 +03:00
parent 835952cda3
commit 204bebc5a4
2 changed files with 5 additions and 3 deletions

View File

@ -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)",

View File

@ -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);
}
}
});