Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Settings to deactivate 'Follow' option for particular models? [Closed]

By
arif
on 4/30/13, 11:55 AM 2,075 views

The Question has been closed

by
Sudhir Arya (SA)
on 05/01/2013 09:13:33

Is there any settings or configuration to remove "Follow" button from bottom of form views for some models or views only?

Also I would like the same for "Send a message or Log a note" feature.

Thanks in advance.

3

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 4/30/13, 12:03 PM

Just remove following portion from xml file:

<div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_ids" widget="mail_thread"/> </div>

This will remove Following part from form view.

Inherit the form view in your module and replace the div tag like this:

<div class="oe_chatter" position="replace"/>

2
Nimesh Contractor
On 5/1/13, 8:32 AM

If you have removed

<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_ids" widget="mail_thread"/>

From the view part then you can remove following code from py file.

_inherit = ['mail.thread']

Which py file need to remove?

ECP D
on 5/7/13, 8:54 AM

No, You need not remove whole py file. As I said you have to remove the _inherit = ['mail.thread'] from the py file only if you remove the chatter section from the xml file.

Nimesh Contractor
on 5/8/13, 4:44 AM

Ok , i got, it, and can i convert this view to show me all email message like on the wall (at archive) on the patner page? i dont know where to set the domain for this, and what i need to write as the rule, can u help? (i want to use only the that part <field name="message_ids" widget="mail_thread"/>)

ECP D
on 5/8/13, 5:51 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/30/13, 11:55 AM
Seen: 2075 times
Last updated: 3/16/15, 8:10 AM