diff options
| author | Ravi Patel <rap@odoo.com> | 2016-05-13 15:06:05 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-05-17 10:43:59 +0200 |
| commit | b9fced8ce1acbad3dcfe16edf7a4e0c534706e2f (patch) | |
| tree | 7503cd4416b21f3bccbc798be10a1c3169c595fd /addons | |
| parent | 5fcfe18ea731c1841ad54ad9db6beb1668703c8a (diff) | |
[FIX] stock: missing module in reference xml id
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/stock/models/stock_picking.py | 8 |
1 files 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): |
