如何解决从生产订单扩展到拣货的功能
寻找在odoo中创建制造订单时创建库存选择值的功能。
我在制造业中发现了此功能,说实话我不理解。
我看不到它如何填充move_ids_without_package
字段
def _generate_finished_moves(self):
move = self.env['stock.move'].create({
'name': self.name,'date': self.date_planned_start,'date_expected': self.date_planned_start,'picking_type_id': self.picking_type_id.id,'product_id': self.product_id.id,'product_uom': self.product_uom_id.id,'product_uom_qty': self.product_qty,'location_id': self.product_id.property_stock_production.id,'location_dest_id': self.location_dest_id.id,'company_id': self.company_id.id,'production_id': self.id,'warehouse_id': self.location_dest_id.get_warehouse().id,'origin': self.name,'group_id': self.procurement_group_id.id,'propagate': self.propagate,'move_dest_ids': [(4,x.id) for x in self.move_dest_ids],})
move._action_confirm()
return move
谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。