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.

30 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2018 ACSONE SA/NV.
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. -->
  6. <odoo>
  7. <record id="product_template_form_view" model="ir.ui.view">
  8. <field name="name">account.invoice.select.contract (in
  9. product_contract_variable_quantity)
  10. </field>
  11. <field name="model">product.template</field>
  12. <field name="inherit_id" ref="product.product_template_form_view"/>
  13. <field name="arch" type="xml">
  14. <xpath expr="//page[@name='contract']"
  15. position="inside">
  16. <group>
  17. <field name="qty_type"
  18. attrs="{'required': [('is_contract', '=', True)], 'invisible': [('is_contract', '!=', True)]}"/>
  19. <field name="qty_formula_id"
  20. attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}"
  21. />
  22. </group>
  23. </xpath>
  24. </field>
  25. </record>
  26. </odoo>