Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
390 Prikazi

Dear Friend


I would like to write the Execute Code in Automation Rule with the Sales Module.

Am using Odoo Online Version.

This is my Code, but don't know my it can't work. I need your HELP!

for line in record.order_line:
    if line.product_id.name != 'Discount':
        line.product_id.active = False

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
jun. 25
2089
3
feb. 25
2574
1
dec. 24
2415
2
mar. 24
2729
2
mar. 24
3253