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 00:13:53
156 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
1776
3
feb 25
1925
1
dic 24
2081
2
mar 24
2422
2
mar 24
2943