123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <act_window
- id="action_open_study_feature"
- name="Estudios"
- res_model="study.feature"
- view_type="form"
- view_mode="tree,form"
- domain="[('partner_id', '=', active_id)]"/>
- <record id="res_partner_study_feature_form" model="ir.ui.view">
- <field name="name">res.partner.study.feature.form</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <field name="category_id" position="after">
- <field name="is_medic" class="oe_inline" attrs="{'invisible': [('is_company','=', True)]}"/><label for="is_medic" string="¿Es un Medico?" attrs="{'invisible': [('is_company','=', True)]}"/>
- </field>
- <field name="title" position="after">
- <field name="medic" attrs="{'invisible': [('is_medic','=', True)],'required': [('is_medic','=', False)]}"/>
- </field>
- <div name="buttons" position="after">
- <div class="oe_right oe_button_box">
- <button
- class="oe_inline oe_stat_button"
- type="action"
- name="%(action_open_study_feature)d"
- icon="fas fa-stethoscope"
- attrs="{'invisible': [('customer', '=', False)]}"
- context="{'default_partner_id': id}">
- <field name="study_feature_count" string="Estudios" widget="statinfo" />
- </button>
- </div>
- </div>
- </field>
- </record>
- </data>
- </openerp>
|