summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2019-08-30 14:24:12 +0000
committerChristophe Simonis <chs@odoo.com>2019-09-04 19:37:41 +0200
commit9570151cb5f9935dbf3d59e60415c47398f17fd8 (patch)
tree7d8ea4a36388ed34cd3157fedc944b0a1b73ed3c /addons
parent7a548569c665ae162510e7dc2ea48b16a041262a (diff)
[FIX] sale_coupon: display domain widget in dialog
Before this commit, when being on the sale coupon program form view in French, it was impossible to click on the record found by the domains this was because the widget domains were displayed in line, which made long text overlap After this commit, we display the widgets in the "in_dialog" mode, which makes more vertical blocs OPW 2061859 closes odoo/enterprise#5363 X-port/Cherry-pick of odoo/enterprise@ffb86687a3e82253e2249330744e4a0905104619 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/sale_coupon/views/sale_coupon_program_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/sale_coupon/views/sale_coupon_program_views.xml b/addons/sale_coupon/views/sale_coupon_program_views.xml
index 90eb2c0bde1..43b8764b919 100644
--- a/addons/sale_coupon/views/sale_coupon_program_views.xml
+++ b/addons/sale_coupon/views/sale_coupon_program_views.xml
@@ -22,7 +22,7 @@
<group>
<group name="conditions" string="Conditions">
<field name="program_type" invisible="1"/>
- <field name="rule_products_domain" placeholder="Select product" widget="domain" options="{'model': 'product.product'}"/>
+ <field name="rule_products_domain" placeholder="Select product" widget="domain" options="{'model': 'product.product', 'in_dialog': true}"/>
<label string="Quantity" for="rule_min_quantity" attrs="{'invisible': [('rule_products_domain', '=', False)]}"/>
<div attrs="{'invisible': [('rule_products_domain', '=',False)]}">
<field name="rule_min_quantity" class="oe_inline"/>
@@ -210,7 +210,7 @@
<field name="sequence" invisible="1"/>
</xpath>
<xpath expr="//field[@name='program_type']" position="after">
- <field name="rule_partners_domain" placeholder="Select customer" widget="domain" options="{'model': 'res.partner'}"/>
+ <field name="rule_partners_domain" placeholder="Select customer" widget="domain" options="{'model': 'res.partner', 'in_dialog': true}"/>
</xpath>
<xpath expr="//div[@name='rule_minimum_amount']" position="after">
<field name="promo_code_usage" widget="radio"/>