mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_global_discount: Migration to 17.0
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<xpath expr="//group[@name='group_standard_price']" position="inside">
|
||||
<field
|
||||
name="bypass_global_discount"
|
||||
attrs="{'invisible': [('product_variant_count', '>', 1)]}"
|
||||
invisible="product_variant_count > 1"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
/>
|
||||
</xpath>
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
name="customer_global_discount_ids"
|
||||
widget="many2many_tags"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
invisible="not is_company and parent_id"
|
||||
/>
|
||||
<field
|
||||
name="customer_global_discount_ids"
|
||||
string="Sale Global Discounts"
|
||||
widget="many2many_tags"
|
||||
groups="!base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
invisible="not is_company and parent_id"
|
||||
readonly="1"
|
||||
/>
|
||||
</group>
|
||||
@@ -27,7 +27,7 @@
|
||||
name="supplier_global_discount_ids"
|
||||
widget="many2many_tags"
|
||||
groups="base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
invisible="not is_company and parent_id"
|
||||
/>
|
||||
<field
|
||||
name="supplier_global_discount_ids"
|
||||
@@ -35,7 +35,7 @@
|
||||
readonly="1"
|
||||
widget="many2many_tags"
|
||||
groups="!base_global_discount.group_global_discount"
|
||||
attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
|
||||
invisible="not is_company and parent_id"
|
||||
/>
|
||||
</group>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user