This question has been flagged
1 Reply
3063 Views

Hi every body ,

I want to show number of message not read from  my module like inbox menu item but i cant do it .

And I am sorry to my poor language skills.

thanks alot

Avatar
Discard
Best Answer

To have an action similar to INBOX, use ir.actions.client

The action created for INBOX is in mail module.

        <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,
              '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'
            }&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>

Avatar
Discard
Author

Thank you so much Mr.atchuthan