Odoo Help

2

How to use oe_chatter class

By
Shabeeh Kazmi
on 5/19/14, 7:51 AM 3,499 views

hi folks

any simple example to use oe_chatter class in our custom module?

3

Jignesh Mehta

--Jignesh Mehta--
3110
| 6 5 8
Surat, India
--Jignesh Mehta--

- I have 3+ years of Industry Experience, specializing Odoo Development, Analysis, Customization, Implementation, Integration.
- I have done many Customization modules in Sale, Purchase, Point of Sale, Inventory, CRM and much more. Also Worked in the Odoo Themes like Business Theme or E-Commerce Theme.
- Develop Jewelery Manufacturing process from Scratch. It have more than 10 Department. Develop PDF and Excel reports for this project around 150 per format.

Jignesh Mehta
On 2/10/16, 8:09 AM

Hello Shabeeh,


In PY :-
class custom_class(modules.Model):

     _name = 'custom.class'

    _inherit = ['mail.thread', 'ir.needaction_mixin']


In Xml:-

<record id="custom_class_form_view" model="ir.ui.view">

    <field name="name">custom.class.form.view</field>

     <field name="model">custom.class</field>

    <field name="arch" type="xml">

        <form string="Custom Class">

              <sheet>

             <!-- Code for Form View -->
    
              </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>

        </form>

    </field>

</record>



Thanks,

2

Pinakin Nayi (pna)

--Pinakin Nayi (pna)--
1264
| 2 1 5
Ahmedabad, India
--Pinakin Nayi (pna)--

He has good skills in problem identification and implementation of effective solutions. He is working in RD India validation team.

Techno-Functional
Skype: pinakinerp

LinkedIn : https://www.linkedin.com/in/pinakin-nayi-2a33103a/

 

Pinakin Nayi (pna)
On 5/19/14, 8:31 AM

Just Define following code in your form view before </form> tag ending(it must need mail.thread inherited _inherit = ['mail.thread']).

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

 

Thanks,

Pinakin

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/19/14, 7:51 AM
Seen: 3499 times
Last updated: 2/10/16, 8:09 AM