Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
jun 25
2147
3
feb 25
2728
1
dic 24
2490
2
mar 24
2841
2
mar 24
3359