summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-02-06 17:13:27 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitc74ab1a146034a4eb99f1ac78743a3765dfa5169 (patch)
tree9d9645872f93ea14b5525d5d754869993918e44e /addons/web/static/src/js/fields/basic_fields.js
parent043384d72fafa86a550e5b8545c2e2d520f207fe (diff)
[IMP] web: domain & field selector usability (+ design)
+ Document and refactor the files using the new guidelines * Now only non-technical names are used when building field chains and domains (technical names can be used in debug mode). * Better warnings are displayed when using the field and/or domain selector widgets (also checks domain validity in both domain field AND domain selector widget). Also improve design (thanks to original work of @stefanorigano): - Hovering 'remove' highlights the element that will be removed - Hovering 'add node' btns shows where the new node will be created - Restyle debug domain input field (make it similar to a text editor) - Improve design and layout - Resize inner fields
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index 136b9cc55df..3a2aa23e0e0 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -1570,6 +1570,7 @@ var FieldDomain = AbstractField.extend({
isValid: function () {
return (
this._super.apply(this, arguments)
+ && (!this.domainSelector || this.domainSelector.isValid())
&& this._isValidForModel
);
},