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.

44 lines
1.8 KiB

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