[FIX] stock: missing module in reference xml id

This commit is contained in:
Ravi Patel
2016-05-17 10:43:59 +02:00
committed by Thibault Delavallée
parent 5fcfe18ea7
commit b9fced8ce1
+4 -4
View File
@@ -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):