You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.3 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="view_task_partner_info_form1" model="ir.ui.view">
  5. <field name="name">res.partner.mails.count</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="priority" eval="50"/>
  9. <field name="groups_id" eval="[(4, ref('project.group_project_user'))]"/>
  10. <field name="arch" type="xml">
  11. <xpath expr="//div[@name='buttons']" position="inside">
  12. <button class="oe_inline oe_stat_button" type="action"
  13. name="%(action_mails_from)d"
  14. context="{'search_default_partner_ids': [active_id]}"
  15. icon="fa-envelope">
  16. <field string="Mails from" name="mails_from" widget="statinfo"/>
  17. </button>
  18. <button class="oe_inline oe_stat_button" type="action"
  19. name="%(action_mails_to)d"
  20. context="{'search_default_author_id': active_id}"
  21. icon="fa-envelope-o">
  22. <field string="Mails to" name="mails_to" widget="statinfo"/>
  23. </button>
  24. </xpath>
  25. </field>
  26. </record>
  27. </data>
  28. </openerp>