Browse Source

Corrected count display letters

pull/3/head
x620 9 years ago
parent
commit
9c6e120d0c
  1. 2
      res_partner_mails_count/__openerp__.py
  2. 51
      res_partner_mails_count/templates.xml
  3. 41
      res_partner_mails_count/views/res_partner_mails_count.xml

2
res_partner_mails_count/__openerp__.py

@ -20,7 +20,7 @@
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base', 'mail_sent'],
'depends': ['base'],
# always loaded
'data': [

51
res_partner_mails_count/templates.xml

@ -17,61 +17,12 @@
</button>
<button class="oe_inline oe_stat_button" type="action"
name="%(action_mails_to)d"
context="{'search_default_partner_ids': [active_id]}"
context="{'search_default_author_id': active_id}"
icon="fa-envelope-o">
<field string="Mails to" name="mails_to" widget="statinfo"/>
</button>
</xpath>
</field>
</record>
<!--<record id="res_partner_mails_count" model="ir.actions.client">-->
<!--<field name="name">Income</field>-->
<!--<field name="tag">mail.wall</field>-->
<!--<field name="context">{-->
<!--'default_model': 'res.users',-->
<!--'default_res_id': uid,-->
<!--'thread_model': 'res.partner',-->
<!--'needaction_menu_ref': ['mail.mail_tomefeeds', 'mail.mail_starfeeds', 'mail.mail_inboxfeeds']-->
<!--}</field>-->
<!--<field name="params" eval="&quot;{-->
<!--'domain': [-->
<!--'|',-->
<!--('notification_ids.partner_id.user_ids', 'in', [uid]),-->
<!--('author_id.user_ids', 'in', [uid]),-->
<!--],-->
<!--'view_mailbox': True,-->
<!--'show_compose_message': False-->
<!--}&quot;"/>-->
<!--<field name="help" type="html">-->
<!--<p>-->
<!--No message found and no message sent yet.-->
<!--</p>-->
<!--<p>-->
<!--Click on the top-right icon to compose a message. This-->
<!--message will be sent by email if it's an internal contact.-->
<!--</p>-->
<!--</field>-->
<!--</record>-->
<!-- <template id="listing"> -->
<!-- <ul> -->
<!-- <li t-foreach="objects" t-as="object"> -->
<!-- <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
<!-- <t t-esc="object.display_name"/> -->
<!-- </a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </template> -->
<!-- <template id="object"> -->
<!-- <h1><t t-esc="object.display_name"/></h1> -->
<!-- <dl> -->
<!-- <t t-foreach="object._fields" t-as="field"> -->
<!-- <dt><t t-esc="field"/></dt> -->
<!-- <dd><t t-esc="object[field]"/></dd> -->
<!-- </t> -->
<!-- </dl> -->
<!-- </template> -->
</data>
</openerp>

41
res_partner_mails_count/views/res_partner_mails_count.xml

@ -1,52 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="action_mails_from" model="ir.actions.client">
<record id="action_mails_from" model="ir.actions.act_window">
<field name="name">Mails from</field>
<field name="tag">mail.wall</field>
<field name="res_model">mail.message</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'search_default_model': False,
'default_model': 'res.users',
'default_res_id': uid,
'thread_model': 'res.partner',
'active_model': False,
'active_test': False,
}</field>
<field name="params" eval="&quot;{
'view_mailbox': False,
'show_compose_message': False
}&quot;"/>
<field name="help" type="html">
<p>
<b>No private message.</b>
</p><p>
This list contains messages sent to you.
Mails from
</p>
</field>
</record>
<record id="action_mails_to" model="ir.actions.client">
<record id="action_mails_to" model="ir.actions.act_window">
<field name="name">Mails to</field>
<field name="tag">mail.wall</field>
<field name="res_model">mail.message</field>
<field name="view_mode">tree,form</field>
<field name="context">{
'default_model': 'res.users',
'default_res_id': uid,
'thread_model': 'res.partner',
'needaction_menu_ref': ['mail.mail_tomefeeds']
'active_test': False,
}</field>
<field name="params" eval="&quot;{
'domain': [
('notification_ids.partner_id.user_ids', 'in', [uid]),
('author_id.user_ids', 'in', [uid]),
],
'view_mailbox': True,
'show_compose_message': False
}&quot;"/>
<field name="help" type="html">
<p>
No message found and no message sent yet.
</p><p>
Click on the top-right icon to compose a message. This
message will be sent by email if it's an internal contact.
Mails to
</p>
</field>
</record>

Loading…
Cancel
Save