From 5928456ffea4b545f47060f196ba56d4b3d9f34c Mon Sep 17 00:00:00 2001 From: guanhuan Date: Mon, 30 Dec 2024 16:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/i18n/zh_CN.po | 21 +++++++++++++++++++++ sf_manufacturing/models/mrp_production.py | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 sf_manufacturing/i18n/zh_CN.po diff --git a/sf_manufacturing/i18n/zh_CN.po b/sf_manufacturing/i18n/zh_CN.po new file mode 100644 index 00000000..a3e8e67e --- /dev/null +++ b/sf_manufacturing/i18n/zh_CN.po @@ -0,0 +1,21 @@ +#. module: sf_manufacturing +#. odoo-python +#: code:addons/sf_manufacturing/models/mrp_production.py:0 +#, python-format +msgid "You must enter a serial number for %s" +msgstr "您必须为%s输入一个序列号。" + + +#. module: sf_manufacturing +#. odoo-python +#: code:addons/sf_manufacturing/models/mrp_production.py:0 +#, python-format +msgid "You must enter a serial number for each line of %s" +msgstr "您必须为以下各%s行输入序列号" + +#. module: sf_manufacturing +#. odoo-python +#: code:addons/sf_manufacturing/models/mrp_production.py:0 +#, python-format +msgid "You have %s incomplete supplies: %s" +msgstr "您有%s补给未完成: %s" \ No newline at end of file diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 0e431347..4216442c 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -1622,7 +1622,7 @@ class MrpProduction(models.Model): def _subcontract_sanity_check(self): for production in self: if production.product_tracking != 'none' and not self.lot_producing_id: - raise UserError(_('您必须为%s输入一个序列号。') % production.product_id.name) + raise UserError(_('You must enter a serial number for %s') % production.product_id.name) for sml in production.move_raw_ids.move_line_ids: if sml.tracking != 'none' and not sml.lot_id: picking_ids = production.picking_ids.filtered( @@ -1632,11 +1632,11 @@ class MrpProduction(models.Model): ['%s:%s' % (picking.picking_type_id.name, picking.name) for picking in picking_ids] ) if picking_info: - raise UserError(_('您有%s补给未完成: %s') % ( + raise UserError(_('You have %s incomplete supplies: %s') % ( picking_num, picking_info)) else: raise UserError( - _('您必须为以下各%s行输入序列号') % sml.product_id.display_name) + _('You must enter a serial number for each line of %s') % sml.product_id.display_name) return True