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.

28 lines
1.2 KiB

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