1234567891011121314151617181920212223242526272829303132 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="asistencia_cliente" model="ir.ui.view">
- <field name="name">asistencia_cliente</field>
- <field name="model">project.task.activity</field>
- <field name="inherit_id" ref="project_task_activity.view_project_task_activity_form"/>
- <field name="arch" type="xml">
- <field name="company_id" position="after">
- <field name="asistencia" />
- <field name="partner_id" attrs="{'invisible': [('asistencia', '=', False)], 'required': [('asistencia', '=', True)]}"/>
- </field>
- </field>
- </record>
- <record id="view_partner_form" model="ir.ui.view">
- <field name="name">view_partner_form</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <notebook>
- <page string="Asistencias">
- <label for="asistencia_id" string="Asistencias"/>
- <field name="asistencia_id" readonly="1"/>
- </page>
- </notebook>
- </field>
- </record>
- </data>
- </openerp>
|