123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <record model="ir.actions.act_window" id="appointment_tree_view">
- <field name="name">Consultas</field>
- <field name="res_model">sis.stock.transfer</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="view_id" ref="sis_appointment_tree_view"/>
- <field name="context">{'search_default_partner_id': active_id}</field>
- <field name="arch" type="xml">
- <tree string="Consultas">
- <field name="name"/>
- </tree>
- </field>
- </record>
- <record id="view_sis_partner_form" model="ir.ui.view">
- <field name="name">view_sis_partner_form</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <xpath expr="//div[@name='buttons']" position="inside">
- <button name="%(appointment_tree_view)d"
- type="action"
- class="oe_inline oe_stat_button"
- icon="fa-user-md"
- context="{'search_default_partner_id': active_id}">
- <field string="Consultas" name="appointment_count" widget="statinfo"/>
- </button>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|