Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
353 Zobrazení

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šit
Related Posts Odpovědi Zobrazení Aktivita
4
čvn 25
2052
3
úno 25
2445
1
pro 24
2329
2
bře 24
2659
2
bře 24
3207