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.

17 lines
912 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="membership_products_form_initial_discount" model="ir.ui.view">
  4. <field name="name">Membership Products (initial discount)</field>
  5. <field name="model">product.template</field>
  6. <field name="inherit_id" ref="membership.membership_products_form" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//group[field[@name='list_price']]" position="after">
  9. <group string="Initial discount">
  10. <field name="initial_discount" />
  11. <field name="fixed_discount" attrs="{'required': [('initial_discount', '=', 'fixed')], 'invisible': [('initial_discount', '!=', 'fixed')]}" />
  12. <field name="percent_discount" attrs="{'required': [('initial_discount', '=', 'percent')], 'invisible': [('initial_discount', '!=', 'percent')]}" />
  13. <field name="product_variant_ids" invisible="1" colspan="4"/>
  14. </group>
  15. </xpath>
  16. </field>
  17. </record>
  18. </odoo>