Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3452 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for your help Chris! 

Câu trả lời hay nhất

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:



Ảnh đại diện
Huỷ bỏ