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.

86 lines
3.9 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.income</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" name="test"
  13. context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}"
  14. icon="fa-envelope">
  15. <field string="Income" name="income" widget="statinfo"/>
  16. </button>
  17. </xpath>
  18. </field>
  19. </record>
  20. <record id="view_task_partner_info_form2" model="ir.ui.view">
  21. <field name="name">res.partner.mails.count.sent</field>
  22. <field name="model">res.partner</field>
  23. <field name="inherit_id" ref="base.view_partner_form"/>
  24. <field name="priority" eval="50"/>
  25. <field name="groups_id" eval="[(4, ref('project.group_project_user'))]"/>
  26. <field name="arch" type="xml">
  27. <xpath expr="//div[@name='buttons']" position="inside">
  28. <button class="oe_inline oe_stat_button" type="action" name="test"
  29. context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}"
  30. icon="fa-envelope-o">
  31. <field string="Sent" name="sent" widget="statinfo"/>
  32. </button>
  33. </xpath>
  34. </field>
  35. </record>
  36. <!--<record id="res_partner_mails_count" model="ir.actions.client">-->
  37. <!--<field name="name">Income</field>-->
  38. <!--<field name="tag">mail.wall</field>-->
  39. <!--<field name="context">{-->
  40. <!--'default_model': 'res.users',-->
  41. <!--'default_res_id': uid,-->
  42. <!--'thread_model': 'res.partner',-->
  43. <!--'needaction_menu_ref': ['mail.mail_tomefeeds', 'mail.mail_starfeeds', 'mail.mail_inboxfeeds']-->
  44. <!--}</field>-->
  45. <!--<field name="params" eval="&quot;{-->
  46. <!--'domain': [-->
  47. <!--'|',-->
  48. <!--('notification_ids.partner_id.user_ids', 'in', [uid]),-->
  49. <!--('author_id.user_ids', 'in', [uid]),-->
  50. <!--],-->
  51. <!--'view_mailbox': True,-->
  52. <!--'show_compose_message': False-->
  53. <!--}&quot;"/>-->
  54. <!--<field name="help" type="html">-->
  55. <!--<p>-->
  56. <!--No message found and no message sent yet.-->
  57. <!--</p>-->
  58. <!--<p>-->
  59. <!--Click on the top-right icon to compose a message. This-->
  60. <!--message will be sent by email if it's an internal contact.-->
  61. <!--</p>-->
  62. <!--</field>-->
  63. <!--</record>-->
  64. <!-- <template id="listing"> -->
  65. <!-- <ul> -->
  66. <!-- <li t-foreach="objects" t-as="object"> -->
  67. <!-- <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
  68. <!-- <t t-esc="object.display_name"/> -->
  69. <!-- </a> -->
  70. <!-- </li> -->
  71. <!-- </ul> -->
  72. <!-- </template> -->
  73. <!-- <template id="object"> -->
  74. <!-- <h1><t t-esc="object.display_name"/></h1> -->
  75. <!-- <dl> -->
  76. <!-- <t t-foreach="object._fields" t-as="field"> -->
  77. <!-- <dt><t t-esc="field"/></dt> -->
  78. <!-- <dd><t t-esc="object[field]"/></dd> -->
  79. <!-- </t> -->
  80. <!-- </dl> -->
  81. <!-- </template> -->
  82. </data>
  83. </openerp>