콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
질문이 마감되었습니다 이유 : 실제 게시물이 아님
작성자 mr.sotheakong@gmail.com 있음 2025년 08월 01일 12시 13분 53초

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
2028
3
2월 25
2387
1
12월 24
2291
2
3월 24
2640
2
3월 24
3166