From d9c7c30856c280b516a0c98cf5d5e18ebe13e37b Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 12 Jan 2017 11:49:14 +0100 Subject: [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. --- addons/web/static/src/xml/base.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/xml/base.xml') 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 @@ +
Select a model to add a filter.
-- cgit v1.2.3 From 1d3472b9d6c3436b8ae3da1d17ac4a141802e410 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 12 Jan 2017 12:05:38 +0100 Subject: [FIX] web: better align domain selector elements Mixing the use of btn-xs and btn-sm was not good for design. This commit use btn-xs for "add a filter" and "edit domain" buttons to improve elements alignment. --- addons/web/static/src/xml/base.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index be1d398f187..4578b3284ae 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -678,7 +678,7 @@ + class="btn btn-xs btn-primary o_form_field_domain_dialog_button">Edit domain
Select a model to add a filter.
@@ -711,7 +711,7 @@
Match all records - +
-- cgit v1.2.3