summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-01-12 11:49:14 +0100
committerqsm-odoo <qsm@odoo.com>2017-01-12 13:37:10 +0100
commitd9c7c30856c280b516a0c98cf5d5e18ebe13e37b (patch)
treeb0a342ea3fdadf7789101bd4f2a1e7748c85fd17 /addons/web/static/src/xml/base.xml
parent3bc580f9f9aec8ab3a3d15ad8cd7047ffcff91ae (diff)
[FIX] web: handle the case of a field domain without set model
Some domain fields are initialized with a model which depends of another form field value. Sometimes, this value is False and the domain selector cannot be used during that time (and was even performing useless RPC). Now, in this case, the field domain is fully replaced by a message which explains that a model have to be set. If you don't want this message to be shown, you still have the possibility to not show the field domain when there is no model thanks to the "invisible" attrs.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 47254cebb09..be1d398f187 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -680,6 +680,7 @@
<button t-if="widget.options.in_dialog &amp;&amp; !widget.get('effective_readonly')"
class="btn btn-sm btn-primary o_form_field_domain_dialog_button">Edit domain</button>
</div>
+ <div class="o_domain_model_missing o_hidden">Select a model to add a filter.</div>
</div>
<t t-name="DomainNode.ControlPanel">