Skip to Content
Menu
This question has been flagged
2 Replies
3089 Views

Hi I want to do an automated action to check a condition every time I add a product in the sales order.


I have tried to do it based on this post but have not succeeded.

https://www.odoo.com/es_ES/forum/ayuda-1/question/i-have-a-script-i-want-to-run-against-a-sales-order-in-a-python-code-chunk-within-automated-actions-163965

The idea I have is that it validates when the order quantity is modified.

https://ibb.co/8dFt8fn


Odoo version: 14


Thanks in advance for your help!

Avatar
Discard
Author

Thanks for your help Chris! 

Best Answer

The other answer relates to running an Automated Action on a sales order and then checking sales order lines.

If you want to do something whenever you add a product in the sales order it should be like this:


Or if the quantity is changed:



Avatar
Discard