summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-09-19 09:47:20 +0000
committerVictor Feyens <vfe@odoo.com>2019-11-08 12:18:41 +0000
commit730e4ce2012d20516db7e419e262922eb0e6507e (patch)
tree01b8f71af1e2a7268d40d6248ac0400cffcc0e73
parent9b4e487a5c031ea94eeb9aaeb221591b6faa92b9 (diff)
[IMP] stock: location creation on company creation.
-rw-r--r--addons/stock/models/res_company.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/res_company.py b/addons/stock/models/res_company.py
index 2766272b554..a219958b545 100644
--- a/addons/stock/models/res_company.py
+++ b/addons/stock/models/res_company.py
@@ -80,8 +80,8 @@ class Company(models.Model):
})
def _create_scrap_location(self):
+ parent_location = self.env.ref('stock.stock_location_locations_virtual', raise_if_not_found=False)
for company in self:
- parent_location = self.env.ref('stock.stock_location_locations_virtual', raise_if_not_found=False)
scrap_location = self.env['stock.location'].create({
'name': 'Scrap',
'usage': 'inventory',