Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
16179 Widoki

hi folks

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

Awatar
Odrzuć
Najlepsza odpowiedź

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,

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

use  class="oe_chatter o_chatter_position_right 

/

    


                       

                   

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
8
kwi 23
31508
0
mar 15
4210
3
mar 25
35851
0
cze 18
2591
2
mar 16
5362