[UPT]web_action_conditionable

* assets file rename + log ignored errors when reading attrs
* update readme description
pull/1595/head
ahenriquez 2020-07-22 10:41:37 +02:00 committed by ibudgie
parent e061e78d34
commit 84bd2d46a0
4 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"name": "web_action_conditionable", "name": "web_action_conditionable",
"version": "13.0.1.0.0", "version": "13.0.1.0.0",
"depends": ["base", "web"], "depends": ["base", "web"],
"data": ["views/view.xml"], "data": ["templates/assets.xml"],
"author": "Cristian Salamea,Odoo Community Association (OCA)", "author": "Cristian Salamea,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web", "website": "https://github.com/OCA/web",
"license": "AGPL-3", "license": "AGPL-3",

View File

@ -1,2 +1 @@
This module was written to extend the functionality of actions in Add support for conditions on create and delete actions on One2Many fields.
tree view (One2Many fields).

View File

@ -24,7 +24,11 @@ odoo.define("web.web_action_conditionable", function(require) {
.evaluate(py.parse(py.tokenize(expr)), self.recordData) .evaluate(py.parse(py.tokenize(expr)), self.recordData)
.toJSON(); .toJSON();
} catch (ignored) { } catch (ignored) {
// Do nothing console.log(
"[web_action_conditionable] unrecognized expr '" +
expr +
"', ignoring"
);
} }
}); });
this.editable = arch.attrs.editable; this.editable = arch.attrs.editable;