summaryrefslogtreecommitdiff
path: root/addons/mail/views/mail_thread_views.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-04-27 11:49:02 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 12:52:45 +0200
commit4a975f1b7d719ebbf17e0d4194cf3fcc56e2f56f (patch)
tree96a29b7f19adabe5f371b023116da887bb0ace03 /addons/mail/views/mail_thread_views.xml
parent4b122ad41d873febe288ab1f8c6cdc078ca2a479 (diff)
[MOV] mail: moved files according to the new module organization
Diffstat (limited to 'addons/mail/views/mail_thread_views.xml')
-rw-r--r--addons/mail/views/mail_thread_views.xml168
1 files changed, 168 insertions, 0 deletions
diff --git a/addons/mail/views/mail_thread_views.xml b/addons/mail/views/mail_thread_views.xml
new file mode 100644
index 00000000000..f4a3e3815d6
--- /dev/null
+++ b/addons/mail/views/mail_thread_views.xml
@@ -0,0 +1,168 @@
+<?xml version="1.0"?>
+<openerp>
+ <data>
+ <record id="action_mail_inbox_feeds" model="ir.actions.client">
+ <field name="name">Inbox</field>
+ <field name="tag">mail.wall</field>
+ <field name="res_model">mail.message</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']
+ }</field>
+ <field name="params" eval="&quot;{
+ 'domain': [
+ ('to_read', '=', True),
+ ('starred', '=', False),
+ ],
+ 'view_mailbox': True,
+ 'view_inbox': True,
+ 'read_action': 'read',
+ 'show_compose_message': False
+ }&quot;"/>
+ <field name="help" type="html">
+ <p>
+ <b>Good Job!</b> Your inbox is empty.
+ </p><p>
+ Your inbox contains private messages or emails sent to you
+ as well as information related to documents or people you
+ follow.
+ </p>
+ </field>
+ </record>
+
+ <record id="action_mail_to_me_feeds" model="ir.actions.client">
+ <field name="name">To: me</field>
+ <field name="tag">mail.wall</field>
+ <field name="res_model">mail.message</field>
+ <field name="context">{
+ 'default_model': 'res.users',
+ 'default_res_id': uid,
+ 'thread_model': 'res.partner',
+ 'search_default_message_unread': True,
+ 'needaction_menu_ref': ['mail.mail_starfeeds', 'mail.mail_inboxfeeds']
+ }</field>
+ <field name="params" eval="&quot;{
+ 'domain': [
+ ('partner_ids.user_ids', 'in', [uid])
+ ],
+ 'view_mailbox': True,
+ 'read_action': 'read',
+ '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.
+ </p>
+ </field>
+ </record>
+
+ <record id="action_mail_star_feeds" model="ir.actions.client">
+ <field name="name">To-do</field>
+ <field name="tag">mail.wall</field>
+ <field name="res_model">mail.message</field>
+ <field name="context">{
+ 'default_model': 'res.users',
+ 'default_res_id': uid,
+ 'thread_model': 'res.partner',
+ 'search_default_message_unread': True
+ }</field>
+ <field name="params" eval="&quot;{
+ 'domain': [
+ ('starred', '=', True),
+ ],
+ 'view_mailbox': True,
+ 'read_action': 'read',
+ 'compose_as_todo': True,
+ 'show_compose_message': False
+ }&quot;"/>
+ <field name="help" type="html">
+ <p>
+ <b>No todo.</b>
+ </p><p>
+ When you process messages in your inbox, you can mark some
+ as <i>todo</i>. From this menu, you can process all your todo.
+ </p>
+ </field>
+ </record>
+
+ <record id="action_mail_archives_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': [
+ '|',
+ ('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>
+
+ <record id="action_mail_redirect" model="ir.actions.server">
+ <field name="name">Mail Redirection (Document / Inbox)</field>
+ <field name="condition">True</field>
+ <field name="model_id" ref="model_mail_thread"/>
+ <field name="code">action = pool.get('mail.thread').message_redirect_action(cr, uid, context)</field>
+ <field name="state">code</field>
+ <field name="type">ir.actions.server</field>
+ </record>
+
+ <!-- MENU -->
+
+ <!-- Top menu item -->
+ <menuitem name="Chat"
+ id="mail.mail_feeds_main"
+ groups="base.group_user"
+ icon="fa-envelope"
+ sequence="1"/>
+
+ <!-- Left-side menu: Feeds -->
+ <menuitem id="mail.mail_inbox" name="Inbox" parent="mail.mail_feeds_main" groups="base.group_user" sequence="1" action="action_mail_inbox_feeds"/>
+
+<!-- <record id="mail_inboxfeeds" model="ir.ui.menu">
+ <field name="name">Inbox</field>
+ <field name="sequence" eval="10"/>
+ <field name="action" ref="action_mail_inbox_feeds"/>
+ <field name="parent_id" ref="mail.mail_inbox"/>
+ </record>
+ -->
+ <!-- <record id="mail_tomefeeds" model="ir.ui.menu">
+ <field name="name">To: me</field>
+ <field name="sequence" eval="11"/>
+ <field name="action" ref="action_mail_to_me_feeds"/>
+ <field name="parent_id" ref="mail.mail_feeds"/>
+ </record>
+ <record id="mail_starfeeds" model="ir.ui.menu">
+ <field name="name">To-do</field>
+ <field name="sequence" eval="14"/>
+ <field name="action" ref="action_mail_star_feeds"/>
+ <field name="parent_id" ref="mail.mail_feeds"/>
+ </record>
+ <record id="mail_archivesfeeds" model="ir.ui.menu">
+ <field name="name">Archives</field>
+ <field name="sequence" eval="16"/>
+ <field name="action" ref="action_mail_archives_feeds"/>
+ <field name="parent_id" ref="mail.mail_feeds"/>
+ </record>
+ -->
+ </data>
+</openerp>