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.

63 lines
3.2 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. <script src="/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js"
  11. type="text/javascript"></script>
  12. </xpath>
  13. </template>
  14. <record id="search_notified_partner_ids" model="ir.ui.view">
  15. <field name="name">mail.message.search.notified_partner</field>
  16. <field name="model">mail.message</field>
  17. <field name="priority">50</field>
  18. <field name="inherit_id" ref="mail.view_message_search"/>
  19. <field name="arch" type="xml">
  20. <search string="Messages Search">
  21. <field name="notified_partner_ids"/>
  22. </search>
  23. </field>
  24. </record>
  25. <record id="view_res_partner_mails_count_info_form" model="ir.ui.view">
  26. <field name="name">res.partner.mails.count</field>
  27. <field name="model">res.partner</field>
  28. <field name="inherit_id" ref="base.view_partner_form"/>
  29. <field name="priority" eval="50"/>
  30. <field name="arch" type="xml">
  31. <xpath expr="//div[@name='buttons']" position="inside">
  32. <button class="oe_inline oe_stat_button mails_to" type="action"
  33. name="%(action_mails)d"
  34. context="{'search_default_notified_partner_ids': [active_id], 'default_model': 'res.partner', 'default_res_id': active_id}"
  35. icon="fa-envelope">
  36. <field string="Mails to" name="mails_to" widget="statinfo"/>
  37. </button>
  38. <button class="oe_inline oe_stat_button mails_from" type="action"
  39. name="%(action_mails)d"
  40. context="{'search_default_author_id': active_id, 'default_model': 'res.partner', 'default_res_id': active_id}"
  41. icon="fa-envelope-o">
  42. <field string="Mails from" name="mails_from" widget="statinfo"/>
  43. </button>
  44. </xpath>
  45. </field>
  46. </record>
  47. <record id="res_partner_mails_count_tutorial" model="ir.actions.act_url">
  48. <field name="name">res_partner_mails_count Tutorial</field>
  49. <field name="url" eval="'/web?res_partner_mails_count=tutorial#id='+str(ref('base.partner_root'))+'&amp;view_type=form&amp;model=res.partner&amp;/#tutorial_extra.mails_count_tour=true'"/>
  50. <field name="target">self</field>
  51. </record>
  52. </data>
  53. <data noupdate="1">
  54. <record id="base.open_menu" model="ir.actions.todo">
  55. <field name="action_id" ref="res_partner_mails_count_tutorial"/>
  56. <field name="state">open</field>
  57. <field name="sequence">200</field>
  58. <field name="type">automatic</field>
  59. </record>
  60. </data>
  61. </openerp>