Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
16706 Zobrazení

hi folks

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

Avatar
Zrušit
Nejlepší odpověď

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,

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

use  class="oe_chatter o_chatter_position_right 

/

    


                       

                   

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
8
dub 23
32154
0
bře 15
4554
3
bře 25
36355
0
čvn 18
2909
2
bře 16
5840