mirror of https://github.com/OCA/web.git
[UPT]web_action_conditionable
* assets file rename + log ignored errors when reading attrs * update readme descriptionpull/1595/head
parent
e061e78d34
commit
84bd2d46a0
|
@ -3,7 +3,7 @@
|
|||
"name": "web_action_conditionable",
|
||||
"version": "13.0.1.0.0",
|
||||
"depends": ["base", "web"],
|
||||
"data": ["views/view.xml"],
|
||||
"data": ["templates/assets.xml"],
|
||||
"author": "Cristian Salamea,Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"license": "AGPL-3",
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
This module was written to extend the functionality of actions in
|
||||
tree view (One2Many fields).
|
||||
Add support for conditions on create and delete actions on One2Many fields.
|
||||
|
|
|
@ -24,7 +24,11 @@ odoo.define("web.web_action_conditionable", function(require) {
|
|||
.evaluate(py.parse(py.tokenize(expr)), self.recordData)
|
||||
.toJSON();
|
||||
} catch (ignored) {
|
||||
// Do nothing
|
||||
console.log(
|
||||
"[web_action_conditionable] unrecognized expr '" +
|
||||
expr +
|
||||
"', ignoring"
|
||||
);
|
||||
}
|
||||
});
|
||||
this.editable = arch.attrs.editable;
|
||||
|
|
Loading…
Reference in New Issue