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
1718
3
फ़र॰ 25
1834
1
दिस॰ 24
2024
2
मार्च 24
2366
2
मार्च 24
2896