Enable Dark Mode!
how-to-dynamically-add-and-remove-followers-in-odoo-19-studio.jpg
By: Nivedhya T

How to Dynamically Add and Remove Followers in Odoo 19 Studio

Functional Odoo 19 Odoo Community Odoo Enterprises

Odoo 19 Studio is the best no-code tool for customizing workflows, views, and automations. One of the most powerful features of Odoo 19 Studio is its ability to manage any record's followers list automatically, subscribe the appropriate individuals when the record reaches a certain threshold, and remove them when the record is no longer relevant.

Create dynamic follower automation on the Sales Order model with Studio by following these steps.

Step 1: Open Studio and select the model for managing followers. Click the Studio icon in the right corner of the screen after selecting Sales.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Step 2: Click Automations at the top to access the Automations Tab in Studio mode.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Step 3: Click the New button to create the Add followers rule. The state of the trigger is set to > Sales Order. In other words, when a quotation is verified and turns into a sales order, the rule is activated. Click the Add an action button.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Step 4: Set the action to Add Followers. Choose Add Followers as the action type in the Create Actions panel. This instructs Odoo to follow any contact listed in the Customer field on this record. Set Followers Type to Dynamic Followers. Set Followers Field to Customer instinctively on all orders. Click Close and Save.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Step 5: Create the "Remove followers" rule in automations by creating a new rule with the same name. This time, set the trigger to State is set to > Cancelled so that it will activate upon the cancellation of the same order.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Step 6: Choose Remove Followers as the Action. This time, add an action and choose Remove Followers. Use the same configuration: Followers Field: Customer, Dynamic Followers.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Before confirming the quotation, the customer will not be added to the followers list.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Click the Confirm button to confirm the quotation to the sales order.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Once the sales order has been confirmed, the customer is automatically added as a follower.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Click the Add Follower button to add a follower manually.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Select the follower from the follower list manually and click the Add Follower button.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

The manually added follower will be shown in the follower list.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

You can click the Cancel button to remove the dynamically added follower from the follower list.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

After the order is cancelled, the dynamically added follower is removed from the followers list.

How to Dynamically Add and Remove Followers in Odoo 19 Studio-cybrosys

Odoo 19 Studio allows you to maintain an accurate, up-to-date follower list for Sales Orders using just two no-code automation rules, eliminating the need for manual intervention or custom development. The customer is automatically subscribed as soon as a quotation becomes a confirmed order and is also automatically unsubscribed if that order is later cancelled by setting up Add Followers on confirmation and Remove Followers on cancellation; any manually added followers are unaffected.

To read more about How to Use AI-Powered Fields in Odoo 19 Studio, refer to our blog How to Use AI-Powered Fields in Odoo 19 Studio.


Frequently Asked Questions

Is developer mode or code required for this?

No. This is built using Studio's point-and-click interface; neither Python nor XML is used.

Will manually added followers be removed as a result of this?

No. Because the "Remove Followers" rule is applied to the Customer field (Dynamic Followers), it solely eliminates the follower that was dynamically added by the "Add Followers" rule. Any person who manually adds a follower through the "Add Follower" button remains on the list.

What happens if I cancel an order that was never confirmed?

The Add Followers rule was never executed; there is no dynamically added follower to delete in the case that the order was never confirmed.

If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment



Recent Posts

WhatsApp