summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJigar Patel <jat@openerp.com>2019-05-20 04:58:16 +0000
committerDharmraj Jhala <dja@odoo.com>2019-10-16 06:09:02 +0000
commit01f5550ee2c18c74e5372b1c28a9f00be4a5118c (patch)
tree0e5f309c3207debc5b400cb17a196a4ca1a8d99c
parent316d5afdd3798ff75a3742e07b0640c84ab177fc (diff)
[IMP] stock: Rename default locations labels
TaskID: 1873106
-rw-r--r--addons/mrp_subcontracting/models/res_company.py2
-rw-r--r--addons/stock/data/stock_data.xml2
-rw-r--r--addons/stock/models/res_company.py8
3 files changed, 6 insertions, 6 deletions
diff --git a/addons/mrp_subcontracting/models/res_company.py b/addons/mrp_subcontracting/models/res_company.py
index 74cd5555591..d5baf637a52 100644
--- a/addons/mrp_subcontracting/models/res_company.py
+++ b/addons/mrp_subcontracting/models/res_company.py
@@ -27,7 +27,7 @@ class ResCompany(models.Model):
])
for company in self:
subcontracting_location = self.env['stock.location'].create({
- 'name': _('%s: Subcontracting Location') % company.name,
+ 'name': _('Subcontracting Location'),
'usage': 'internal',
'location_id': parent_location.id,
'company_id': company.id,
diff --git a/addons/stock/data/stock_data.xml b/addons/stock/data/stock_data.xml
index 098ae87bc7d..de931bd88c6 100644
--- a/addons/stock/data/stock_data.xml
+++ b/addons/stock/data/stock_data.xml
@@ -48,7 +48,7 @@
</record>
<record id="stock_location_inter_wh" model="stock.location">
- <field name="name">Inter Company Transit</field>
+ <field name="name">Inter-company transit</field>
<field name="location_id" ref="stock_location_locations_virtual"/>
<field name="usage">transit</field>
<field name="company_id"></field>
diff --git a/addons/stock/models/res_company.py b/addons/stock/models/res_company.py
index 41eca71e2d8..039ffa5d302 100644
--- a/addons/stock/models/res_company.py
+++ b/addons/stock/models/res_company.py
@@ -31,7 +31,7 @@ class Company(models.Model):
parent_location = self.env.ref('stock.stock_location_locations', raise_if_not_found=False)
for company in self:
location = self.env['stock.location'].create({
- 'name': _('%s: Transit Location') % company.name,
+ 'name': _('Inter-warehouse transit'),
'usage': 'transit',
'location_id': parent_location and parent_location.id or False,
'company_id': company.id,
@@ -49,7 +49,7 @@ class Company(models.Model):
inventory_loss_product_template_field = self.env['ir.model.fields'].search([('model','=','product.template'),('name','=','property_stock_inventory')])
for company in self:
inventory_loss_location = self.env['stock.location'].create({
- 'name': '%s: Inventory adjustment' % company.name,
+ 'name': 'Inventory adjustment',
'usage': 'inventory',
'location_id': parent_location.id,
'company_id': company.id,
@@ -66,7 +66,7 @@ class Company(models.Model):
production_product_template_field = self.env['ir.model.fields'].search([('model','=','product.template'),('name','=','property_stock_production')])
for company in self:
production_location = self.env['stock.location'].create({
- 'name': '%s: Production' % company.name,
+ 'name': 'Production',
'usage': 'production',
'location_id': parent_location.id,
'company_id': company.id,
@@ -82,7 +82,7 @@ class Company(models.Model):
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': '%s: Scrap' % company.name,
+ 'name': 'Scrap',
'usage': 'inventory',
'location_id': parent_location.id,
'company_id': company.id,