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.

29 lines
1.0 KiB

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