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.

24 lines
981 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2019 Tecnativa - Pedro M. Baeza
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="contract_line_tree_view" model="ir.ui.view">
  6. <field name="name">contract.line tree view (in contract) - Add variable qty fields</field>
  7. <field name="model">contract.line</field>
  8. <field name="inherit_id" ref="contract.contract_line_tree_view"/>
  9. <field name="arch" type="xml">
  10. <field name="quantity" position="before">
  11. <field name="qty_type"/>
  12. <field
  13. name="qty_formula_id"
  14. attrs="{'invisible': [('qty_type', '!=', 'variable')]}"
  15. />
  16. </field>
  17. <field name="quantity" position="attributes">
  18. <attribute name="attrs">{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
  19. </field>
  20. </field>
  21. </record>
  22. </odoo>