Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
คำถามนี้ถูกปิดแล้ว เนื่องจาก: ไม่ใช่โพสต์จริง โดย mr.sotheakong@gmail.com เมื่อ 01/08/2025 00:13:53
189 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
มิ.ย. 25
1830
3
ก.พ. 25
2014
1
ธ.ค. 24
2125
2
มี.ค. 24
2464
Managing orders from repeat customers แก้ไขแล้ว
2
มี.ค. 24
2991