res_partner.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.actions.act_window" id="appointment_tree_view">
  5. <field name="name">Consultas</field>
  6. <field name="res_model">sis.stock.transfer</field>
  7. <field name="view_type">form</field>
  8. <field name="view_mode">tree,form</field>
  9. <field name="view_id" ref="sis_appointment_tree_view"/>
  10. <field name="context">{'search_default_partner_id': active_id}</field>
  11. <field name="arch" type="xml">
  12. <tree string="Consultas">
  13. <field name="name"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_sis_partner_form" model="ir.ui.view">
  18. <field name="name">view_sis_partner_form</field>
  19. <field name="model">res.partner</field>
  20. <field name="inherit_id" ref="base.view_partner_form"/>
  21. <field name="arch" type="xml">
  22. <xpath expr="//div[@name='buttons']" position="inside">
  23. <button name="%(appointment_tree_view)d"
  24. type="action"
  25. class="oe_inline oe_stat_button"
  26. icon="fa-user-md"
  27. context="{'search_default_partner_id': active_id}">
  28. <field string="Consultas" name="appointment_count" widget="statinfo"/>
  29. </button>
  30. </xpath>
  31. </field>
  32. </record>
  33. </data>
  34. </openerp>