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.

26 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="contract_abstract_contract_line_form_view"
  4. model="ir.ui.view">
  5. <field name="name">Abstract Contract Line Form View</field>
  6. <field name="model">contract.abstract.contract.line</field>
  7. <field name="inherit_id" ref="contract.contract_abstract_contract_line_form_view"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='quantity']" position="before">
  10. <field name="qty_type"/>
  11. </xpath>
  12. <xpath expr="//field[@name='quantity']" position="after">
  13. <field name="qty_formula_id"
  14. attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}"
  15. />
  16. </xpath>
  17. <xpath expr="//field[@name='quantity']" position="attributes">
  18. <attribute name="attrs">{'required': [('qty_type', '=',
  19. 'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}
  20. </attribute>
  21. </xpath>
  22. </field>
  23. </record>
  24. </odoo>