Browse Source

[FIX] __openerp__.py: add link to views/templates.xml

[FIX] templates.xml: add menu item where display all messages
pull/35/head
x620 9 years ago
parent
commit
51dd345250
  1. 5
      mail_all/__openerp__.py
  2. 32
      mail_all/views/templates.xml

5
mail_all/__openerp__.py

@ -17,10 +17,7 @@
], ],
"external_dependencies": {"python": [], "bin": []}, "external_dependencies": {"python": [], "bin": []},
"data": [ "data": [
# "views/templates.xml",
],
"qweb": [
# "static/src/xml/menu.xml",
"views/templates.xml",
], ],
"demo": [], "demo": [],
"post_load": None, "post_load": None,

32
mail_all/views/templates.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="action_mail_all_feeds" model="ir.actions.client">
<field name="name">All messages</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': [],
'view_mailbox': True,
'show_compose_message': False
}&quot;"/>
<field name="help" type="html">
<p>
No message found.
</p>
</field>
</record>
<record id="mail_all_feeds" model="ir.ui.menu">
<field name="name">All messages</field>
<field name="sequence" eval="100"/>
<field name="action" ref="action_mail_all_feeds"/>
<field name="parent_id" ref="mail.mail_feeds"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save