Skip to Content
मेन्यू
This question has been flagged
The question has been closed for reason: not a real post
by mr.sotheakong@gmail.com on शुक्रवार 01 अग॰ 2025 12:13:53

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
Discard
Related Posts Replies Views Activity
4
जून 25
1863
3
फ़र॰ 25
2068
1
दिस॰ 24
2158
2
मार्च 24
2504
2
मार्च 24
3011