asistencia.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="asistencia_cliente" model="ir.ui.view">
  5. <field name="name">asistencia_cliente</field>
  6. <field name="model">project.task.activity</field>
  7. <field name="inherit_id" ref="project_task_activity.view_project_task_activity_form"/>
  8. <field name="arch" type="xml">
  9. <field name="company_id" position="after">
  10. <field name="asistencia" />
  11. <field name="partner_id" attrs="{'invisible': [('asistencia', '=', False)], 'required': [('asistencia', '=', True)]}"/>
  12. </field>
  13. </field>
  14. </record>
  15. <record id="view_partner_form" model="ir.ui.view">
  16. <field name="name">view_partner_form</field>
  17. <field name="model">res.partner</field>
  18. <field name="inherit_id" ref="base.view_partner_form"/>
  19. <field name="arch" type="xml">
  20. <notebook>
  21. <page string="Asistencias">
  22. <label for="asistencia_id" string="Asistencias"/>
  23. <field name="asistencia_id" readonly="1"/>
  24. </page>
  25. </notebook>
  26. </field>
  27. </record>
  28. </data>
  29. </openerp>