account_analytic_account.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="contrato_form_view">
  5. <field name="name">contrato_form_view</field>
  6. <field name="model">account.analytic.account</field>
  7. <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
  8. <field name="arch" type="xml">
  9. <field name="recurring_next_date" position="before">
  10. <field name="cuota_total"/>
  11. <field name="nro_cuotas" readonly="1"/>
  12. </field>
  13. </field>
  14. </record>
  15. <record id="contrato_form_view_editable" model="ir.ui.view">
  16. <field name="name">contrato_form_view_editable</field>
  17. <field name="model">account.analytic.account</field>
  18. <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
  19. <field name="groups_id" eval="[(6, 0, [ref('eiru_inmobiliaria.readonly_fields_inmobiliaria')])]"/>
  20. <field name="arch" type="xml">
  21. <xpath expr="//field[@name='nro_cuotas']" position="attributes">
  22. <attribute name="readonly">0</attribute>
  23. </xpath>
  24. </field>
  25. </record>
  26. <record model="ir.ui.view" id="contrato_form_view2">
  27. <field name="name">contrato_form_view2</field>
  28. <field name="model">account.analytic.account</field>
  29. <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
  30. <field name="arch" type="xml">
  31. <field name="code" position="replace">
  32. <field name="code" readonly="1"/>
  33. </field>
  34. </field>
  35. </record>
  36. </data>
  37. </openerp>