You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
912 B
18 lines
912 B
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="membership_products_form_initial_discount" model="ir.ui.view">
|
|
<field name="name">Membership Products (initial discount)</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="membership.membership_products_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[field[@name='list_price']]" position="after">
|
|
<group string="Initial discount">
|
|
<field name="initial_discount" />
|
|
<field name="fixed_discount" attrs="{'required': [('initial_discount', '=', 'fixed')], 'invisible': [('initial_discount', '!=', 'fixed')]}" />
|
|
<field name="percent_discount" attrs="{'required': [('initial_discount', '=', 'percent')], 'invisible': [('initial_discount', '!=', 'percent')]}" />
|
|
<field name="product_variant_ids" invisible="1" colspan="4"/>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|