从生产订单扩展到拣货的功能

问题描述

寻找在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 (将#修改为@)