跳至内容
菜单
此问题已终结
该问题已被关闭 原因: 不是一个真正的帖子
mr.sotheakong@gmail.com2025年08月01日 00时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
1754
3
2月 25
1899
1
12月 24
2062
2
3月 24
2404
2
3月 24
2915