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