From b9fced8ce1acbad3dcfe16edf7a4e0c534706e2f Mon Sep 17 00:00:00 2001 From: Ravi Patel Date: Fri, 13 May 2016 15:06:05 +0200 Subject: [PATCH] [FIX] stock: missing module in reference xml id --- addons/stock/models/stock_picking.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 66449de96dc..647f9ea0d02 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -111,11 +111,11 @@ class PickingType(models.Model): @api.onchange('code') def onchange_picking_code(self): if self.code == 'incoming': - self.default_location_src_id = self.env.ref('stock_location_suppliers').id - self.default_location_dest_id = self.env.ref('stock_location_stock').id + self.default_location_src_id = self.env.ref('stock.stock_location_suppliers').id + self.default_location_dest_id = self.env.ref('stock.stock_location_stock').id elif self.code == 'outgoing': - self.default_location_src_id = self.env.ref('stock_location_stock').id - self.default_location_dest_id = self.env.ref('stock_location_customers').id + self.default_location_src_id = self.env.ref('stock.stock_location_stock').id + self.default_location_dest_id = self.env.ref('stock.stock_location_customers').id @api.multi def _get_action(self, action_xmlid):