Browse Source

upload mail_sent

pull/2/head
Ivan Yelizariev 10 years ago
commit
eeff92a2bb
  1. 0
      __init__.py
  2. 17
      __openerp__.py
  3. 37
      views.xml

0
__init__.py

17
__openerp__.py

@ -0,0 +1,17 @@
{
'name' : 'Sent mails menu',
'version' : '1.0.0',
'author' : 'Ivan Yelizariev',
'category' : 'Sale',
'website' : 'https://it-projects.info',
'description': """
Adds "Sent" box. It's the same as archive but filtered by Author.
Tested on Odoo 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d
""",
'depends' : ['mail'],
'data':[
'views.xml',
],
'installable': True
}

37
views.xml

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="action_mail_sent_feeds" model="ir.actions.client">
<field name="name">Archives</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': [
('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>
<record id="mail_sentfeeds" model="ir.ui.menu">
<field name="name">Sent</field>
<field name="sequence" eval="10"/>
<field name="action" ref="action_mail_sent_feeds"/>
<field name="parent_id" ref="mail.mail_feeds"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save