[IMP] sale_coupon, website_crm_score: adapt to new domain widget

Since commit https://github.com/odoo/odoo/commit/e3f99885ca789b338a4cb9ab9a154db50dff500d,
the FieldCharDomain was replaced by the FieldDomain and these form
definitions had to be adapted.
This commit is contained in:
qsm-odoo
2017-01-03 18:44:20 +01:00
parent 94066b25f5
commit 77de506712
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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="char_domain" options="{'model': 'product.product'}"/>
<field name="rule_products_domain" placeholder="Select product" widget="domain" options="{'model': 'product.product'}"/>
<field name="rule_product_ids" widget="many2many_tags" invisible="1"/>
<label string="Quantity" for="rule_min_quantity" attrs="{'invisible': [('rule_products_domain', '=', False)]}"/>
<div attrs="{'invisible': [('rule_products_domain', '=',False)]}">
@@ -190,7 +190,7 @@
<field name="sequence" invisible="1"/>
</xpath>
<xpath expr="//field[@name='program_type']" position="after">
<field name="rule_partners_domain" placeholder="Select customer" widget="char_domain" options="{'model': 'res.partner'}"/>
<field name="rule_partners_domain" placeholder="Select customer" widget="domain" options="{'model': 'res.partner'}"/>
<field name="rule_partner_ids" widget="many2many_tags" invisible="1" domain="[('is_customer', '=', True)]"/>
</xpath>
<xpath expr="//div[@name='rule_minimum_amount']" position="after">
+1 -1
View File
@@ -7,7 +7,7 @@
<form string="Generate Coupons">
<group>
<field name="generation_type" widget="radio"/>
<field name="partners_domain" attrs="{'invisible': [('generation_type', '!=', 'nbr_customer')]}" widget="char_domain" options="{'model': 'res.partner'}"/>
<field name="partners_domain" attrs="{'invisible': [('generation_type', '!=', 'nbr_customer')]}" widget="domain" options="{'model': 'res.partner'}"/>
<field name="partner_ids" groups="base.group_no_one"/>
<field name="nbr_coupons" attrs="{'invisible': [('generation_type', '!=', 'nbr_coupon')]}"/>
</group>