跳至內容
選單
此問題已被標幟
問題已關閉 原因: 不是真正的貼文
mr.sotheakong@gmail.com2025年08月01日 00時13分53秒
153 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
6月 25
1775
3
2月 25
1920
1
12月 24
2080
2
3月 24
2415
2
3月 24
2939