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

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
2009
3
ก.พ. 25
2346
1
ธ.ค. 24
2275
2
มี.ค. 24
2626
Managing orders from repeat customers แก้ไขแล้ว
2
มี.ค. 24
3148