project_service.xml 893 B

12345678910111213141516171819202122
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- Form view -->
  5. <record model="ir.ui.view" id="project_service_inherit">
  6. <field name="name">project.service.form.inherit</field>
  7. <field name="model">project.service</field>
  8. <field name="inherit_id" ref="eiru_service.project_service_form"/>
  9. <field name="arch" type="xml">
  10. <field name="partner_id" position="after">
  11. <field name="policy" string="¿Entra por medio de seguro?" attrs="{'readonly': [('state','=', 'close')]}"/>
  12. </field>
  13. <field name="policy" position="after">
  14. <field name="agent_id" string="Agente de seguro" attrs="{'invisible': [('policy','=', False)],'readonly': [('state','=', 'close')]}"/>
  15. </field>
  16. </field>
  17. </record>
  18. </data>
  19. </openerp>