Ir al contenido
Menú
Se marcó esta pregunta
Su pregunta ha sido cerrada. por motivo: No es una publicación real
por mr.sotheakong@gmail.com de 01/08/2025 00:13:53

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
1674
3
feb 25
1794
1
dic 24
1994
2
mar 24
2314
2
mar 24
2864