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.

47 lines
2.5 KiB

9 years ago
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <template id="res_partner_mails_count_assets_backend"
  5. inherit_id="web.assets_backend">
  6. <xpath expr="." position="inside">
  7. <script src="/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js"
  8. type="text/javascript"></script>
  9. </xpath>
  10. </template>
  11. <record id="view_res_partner_mails_count_info_form" model="ir.ui.view">
  12. <field name="name">res.partner.mails.count</field>
  13. <field name="model">res.partner</field>
  14. <field name="inherit_id" ref="base.view_partner_form"/>
  15. <field name="priority" eval="50"/>
  16. <field name="arch" type="xml">
  17. <div name="button_box" position="inside">
  18. <button class="oe_stat_button mails_to" type="action"
  19. name="%(action_mails)d"
  20. context="{'search_default_partner_ids': [active_id], 'default_model': 'res.partner', 'default_res_id': active_id}"
  21. icon="fa-envelope">
  22. <field string="Mails to" name="mails_to" widget="statinfo"/>
  23. </button>
  24. <button class="oe_stat_button mails_from" type="action"
  25. name="%(action_mails)d"
  26. context="{'search_default_author_id': active_id, 'default_model': 'res.partner', 'default_res_id': active_id}"
  27. icon="fa-envelope-o">
  28. <field string="Mails from" name="mails_from" widget="statinfo"/>
  29. </button>
  30. </div>
  31. </field>
  32. </record>
  33. </data>
  34. <data noupdate="true">
  35. <record id="res_partner_mails_count_tutorial" model="ir.actions.act_url">
  36. <field name="name">res_partner_mails_count Tutorial</field>
  37. <field name="url" eval="'/web?debug=1&amp;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'"/>
  38. <field name="target">self</field>
  39. </record>
  40. <record id="base.open_menu" model="ir.actions.todo">
  41. <field name="action_id" ref="res_partner_mails_count_tutorial"/>
  42. <field name="state">open</field>
  43. <field name="sequence">200</field>
  44. <field name="type">automatic</field>
  45. </record>
  46. </data>
  47. </openerp>