Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
The question has been closed iz razloga: not a real post
by mr.sotheakong@gmail.com na 01. 08. 2025 00:13:53
157 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
jun. 25
1776
3
feb. 25
1925
1
dec. 24
2081
2
mar. 24
2422
2
mar. 24
2947