Odoo Technical

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

How can I use Server Actions to remove followers from Sale Orders in Odoo?

Avatar
Selvanayagi

Sales

Avatar
Discard
1 Answer
0
Avatar
pavithra_s
Best Answer

Here are the solutions, [taken from the Odoo Help Forum]
This allows you to delete all followers with a very simple piece of Python code:

for order in env['sale.order'].search([]):

    order.message_follower_ids = [(6, 0, [])]


Avatar
Discard