تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2565 أدوات العرض

Hello,

For a specific module, I need to notify the user when the manager confirm a form and the state chaged to 'Confirmed State'.

Any Help about this.

Thanks

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

If you inherit the "mail.thread" model for you specific model you will be able to activate the track visibility feature.

add this lines to your form view

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

And for all field that you add the attribute track visibility, odoo will notify all users following an object when  that filed is changed.

fields.Char(track_visibility='onchange')

Best regards.

الصورة الرمزية
إهمال
الكاتب

Thanks :)