odoo18-半成品入线边库、成品入成品库-教程

1、配置自动化规则

路径:设置-》自动化规则

image

 

2、配置执行代码

if record.product_id.categ_id.id == 5:  # 替换为“半成品”类别的 ID
    record.write({'picking_type_id': 13})
else:
    record.write({'picking_type_id': 11})

3、作业类型

image

 

image

 

posted @ 2025-11-07 14:41  huangyanpeng  阅读(0)  评论(0)    收藏  举报