[IMP] stock: location creation on company creation.

This commit is contained in:
Victor Feyens
2019-11-08 12:18:41 +00:00
parent 9b4e487a5c
commit 730e4ce201
+1 -1
View File
@@ -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',