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
142 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
1730
3
úno 25
1858
1
pro 24
2045
2
bře 24
2382
2
bře 24
2902