Skip to Content
Menu
This question has been flagged
The question has been closed z dôvodu: nie skutočný príspevok pomocou mr.sotheakong@gmail.com na 01.08.2025 00:13:53
160 Zobrazenia

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
4
jún 25
1778
3
feb 25
1927
1
dec 24
2082
2
mar 24
2423
2
mar 24
2948