コンテンツへスキップ
メニュー
この質問にフラグが付けられました
質問は終了しました 理由: 実際の投稿ではありません
次により: mr.sotheakong@gmail.com on 2025年08月01日 00時13分53秒
170 ビュー

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
1780
3
2月 25
1933
1
12月 24
2082
2
3月 24
2427
2
3月 24
2953