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.

43 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="account_analytic_invoice_line_form_view" model="ir.ui.view">
  4. <field name="name">account.analytic.invoice.line.view</field>
  5. <field name="model">account.analytic.invoice.line</field>
  6. <field name="arch" type="xml">
  7. <form string="Line Information">
  8. <group>
  9. <group>
  10. <field name="analytic_account_id"/>
  11. <field name="automatic_price"/>
  12. </group>
  13. <group>
  14. <field name="product_id"/>
  15. <field name="name"/>
  16. <field name="quantity"/>
  17. <field name="uom_id"/>
  18. <field name="price_unit"/>
  19. <field name="variation_percent"/>
  20. <label for="date_start" string="Validity"/>
  21. <div><field name="date_start" class="oe_inline"/> to <field name="date_end" class="oe_inline"/></div>
  22. <field name="discount"/>
  23. <field name="price_subtotal"/>
  24. </group>
  25. </group>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="account_analytic_account_recurring_form_form" model="ir.ui.view">
  30. <field name="name">Contract form price revision</field>
  31. <field name="model">account.analytic.account</field>
  32. <field name="inherit_id" ref="contract.account_analytic_account_recurring_form_form"/>
  33. <field name="arch" type="xml">
  34. <field name="price_unit" position="after">
  35. <field name="variation_percent" attrs="{'readonly': [('automatic_price', '=', True)]}"/>
  36. <field name="date_start" attrs="{'readonly': [('automatic_price', '=', True)]}"/>
  37. <field name="date_end" attrs="{'readonly': [('automatic_price', '=', True)]}"/>
  38. </field>
  39. </field>
  40. </record>
  41. </odoo>