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.

48 lines
2.3 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <template id="res_partner_mails_count_assets_backend"
  5. name="res_partner_mails_count_assets_backend"
  6. inherit_id="web.assets_backend">
  7. <xpath expr="." position="inside">
  8. <script src="/res_partner_mails_count/static/src/js/main.js"
  9. type="text/javascript"></script>
  10. </xpath>
  11. </template>
  12. <record id="search_notified_partner_ids" model="ir.ui.view">
  13. <field name="name">mail.message.search.notified_partner</field>
  14. <field name="model">mail.message</field>
  15. <field name="priority">50</field>
  16. <field name="inherit_id" ref="mail.view_message_search"/>
  17. <field name="arch" type="xml">
  18. <search string="Messages Search">
  19. <field name="notified_partner_ids"/>
  20. </search>
  21. </field>
  22. </record>
  23. <record id="view_res_partner_mails_count_info_form" model="ir.ui.view">
  24. <field name="name">res.partner.mails.count</field>
  25. <field name="model">res.partner</field>
  26. <field name="inherit_id" ref="base.view_partner_form"/>
  27. <field name="priority" eval="50"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//div[@name='buttons']" position="inside">
  30. <button class="oe_inline oe_stat_button" type="action"
  31. name="%(action_mails)d"
  32. context="{'search_default_notified_partner_ids': [active_id], 'default_model': 'res.partner', 'default_res_id': active_id}"
  33. icon="fa-envelope">
  34. <field string="Mails to" name="mails_to" widget="statinfo"/>
  35. </button>
  36. <button class="oe_inline oe_stat_button" type="action"
  37. name="%(action_mails)d"
  38. context="{'search_default_author_id': active_id, 'default_model': 'res.partner', 'default_res_id': active_id}"
  39. icon="fa-envelope-o">
  40. <field string="Mails from" name="mails_from" widget="statinfo"/>
  41. </button>
  42. </xpath>
  43. </field>
  44. </record>
  45. </data>
  46. </openerp>