[IMP] stock: location creation on company creation.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user