You need to inherit your module from "mail.thread" also. That makes adding it possible.
e.g. as here (model.py):
class sale_order(osv.osv): _name = "sale.order" _inherit = ['mail.thread', 'ir.needaction_mixin']
Then you need to add the Thread to your view (view.xml):
<record id="view_order_form" model="ir.ui.view"> <field name="name">sale.order.form</field> <field name="model">sale.order</field> <field name="arch" type="xml"> <form string="Sales Order" version="7.0"> ... </form> <sheet> ... </sheet> <div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_ids" widget="mail_thread"/> </div> </field> </record>
That's all you need to do. :)
Hi there, In Online Demo chatter is working at Human Resources, employee forms by default. But in my OpenERP v7 setup it doesn't. It does work on other forms but not in employees forms.
I think all I have to do is to enable oe_chatter in employee form. I dont know much on openERP, so I managed to enter developer mode and go to Database Structure - Models - hr.employee. I click on the "Edit formview", but I cannot find "mail_thread" to inherit it. I can only add the class code in the form.
I just need a simple solution on how to enable oe_chatter in employee form, because its working everywhere else in my OpenERP setup. I am strugling to find a solution for over 2 days now but with no luck.
how about if I regroup in one module all of the adding a group in the followers for example in purchase, sales.....
For example when purchase goes Sent for Waiting approval, one group 1 is automatically added in the followers.
this purchase goes to waiting approval for approved, one group 2 is automatically added in the followers.
How to do, I want to gather all of this case in one module?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/3/13, 10:28 AM|
|Seen: 10163 times|
|Last updated: 10/24/16, 2:46 AM|