Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
La domanda è stata chiusa con motivazione: Non è un messaggio autentico
da mr.sotheakong@gmail.com - 01/08/2025 12:13:53
304 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
giu 25
1997
3
feb 25
2340
1
dic 24
2273
2
mar 24
2620
2
mar 24
3146