From 7ad638d8423151d944aa268cc246d5f726f1f9be Mon Sep 17 00:00:00 2001 From: Ivan Office Date: Tue, 25 Jun 2024 01:14:37 +0800 Subject: [PATCH] =?UTF-8?q?prepare=20#IA7YMY=20[wl=5Fwebiste]=E5=87=BA?= =?UTF-8?q?=E5=9B=A2=E5=A2=9E=E5=8A=A0MRP=E8=AE=A1=E5=88=92=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20=E7=BD=AE=E9=A1=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_base_chinese/models/res_company.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app_base_chinese/models/res_company.py b/app_base_chinese/models/res_company.py index 3d5103e4..a6c5e69d 100644 --- a/app_base_chinese/models/res_company.py +++ b/app_base_chinese/models/res_company.py @@ -14,17 +14,17 @@ class ResCompany(models.Model): # 修正区位名称 ids = self.env['stock.location'].with_context(active_test=False).search( [('name', 'like', ': Transit Location'), ('company_id', '=', rec.id)]) - ids.write({'name': '%s: 中转区位' % rec.name}) + ids.with_context(lang='zh_CN').write({'name': '%s:中转区位' % rec.name}) ids = self.env['stock.location'].with_context(active_test=False).search( [('name', 'like', ': Scrap'), ('company_id', '=', rec.id)]) - ids.write({'name': '%s: 报废区位' % rec.name}) + ids.with_context(lang='zh_CN').write({'name': '%s:报废区位' % rec.name}) ids = self.env['stock.location'].with_context(active_test=False).search( [('name', 'like', ': Inventory adjustment'), ('company_id', '=', rec.id)]) - ids.write({'name': '%s: 盘点区位' % rec.name}) + ids.with_context(lang='zh_CN').write({'name': '%s:盘点区位' % rec.name}) # 注意,原生没有在生产中使用 _ ids = self.env['stock.location'].with_context(active_test=False).search([ ('name', 'like', ': Production'), ('company_id', '=', rec.id)]) - ids.write({'name': '%s: 生产区位' % rec.name}) + ids.with_context(lang='zh_CN').write({'name': '%s:生产区位' % rec.name}) ids = self.env['stock.location'].with_context(active_test=False).search([ ('name', 'like', ': Subcontracting Location'), ('company_id', '=', rec.id)]) - ids.write({'name': '%s: 委外区位' % rec.name}) + ids.with_context(lang='zh_CN').write({'name': '%s:委外区位' % rec.name})