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.

76 lines
3.4 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_partner_ids': [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. <!--<record id="res_partner_mails_count" model="ir.actions.client">-->
  28. <!--<field name="name">Income</field>-->
  29. <!--<field name="tag">mail.wall</field>-->
  30. <!--<field name="context">{-->
  31. <!--'default_model': 'res.users',-->
  32. <!--'default_res_id': uid,-->
  33. <!--'thread_model': 'res.partner',-->
  34. <!--'needaction_menu_ref': ['mail.mail_tomefeeds', 'mail.mail_starfeeds', 'mail.mail_inboxfeeds']-->
  35. <!--}</field>-->
  36. <!--<field name="params" eval="&quot;{-->
  37. <!--'domain': [-->
  38. <!--'|',-->
  39. <!--('notification_ids.partner_id.user_ids', 'in', [uid]),-->
  40. <!--('author_id.user_ids', 'in', [uid]),-->
  41. <!--],-->
  42. <!--'view_mailbox': True,-->
  43. <!--'show_compose_message': False-->
  44. <!--}&quot;"/>-->
  45. <!--<field name="help" type="html">-->
  46. <!--<p>-->
  47. <!--No message found and no message sent yet.-->
  48. <!--</p>-->
  49. <!--<p>-->
  50. <!--Click on the top-right icon to compose a message. This-->
  51. <!--message will be sent by email if it's an internal contact.-->
  52. <!--</p>-->
  53. <!--</field>-->
  54. <!--</record>-->
  55. <!-- <template id="listing"> -->
  56. <!-- <ul> -->
  57. <!-- <li t-foreach="objects" t-as="object"> -->
  58. <!-- <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
  59. <!-- <t t-esc="object.display_name"/> -->
  60. <!-- </a> -->
  61. <!-- </li> -->
  62. <!-- </ul> -->
  63. <!-- </template> -->
  64. <!-- <template id="object"> -->
  65. <!-- <h1><t t-esc="object.display_name"/></h1> -->
  66. <!-- <dl> -->
  67. <!-- <t t-foreach="object._fields" t-as="field"> -->
  68. <!-- <dt><t t-esc="field"/></dt> -->
  69. <!-- <dd><t t-esc="object[field]"/></dd> -->
  70. <!-- </t> -->
  71. <!-- </dl> -->
  72. <!-- </template> -->
  73. </data>
  74. </openerp>