Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
Otázka byla uzavřena pro důvod: Není to skutečný příspěvek od mr.sotheakong@gmail.com na 01.08.2025 00:13:53
226 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
1874
3
úno 25
2089
1
pro 24
2164
2
bře 24
2510
2
bře 24
3017