Skip to Content
मेन्यू
This question has been flagged

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
2054
3
फ़र॰ 25
2451
1
दिस॰ 24
2332
2
मार्च 24
2664
2
मार्च 24
3211