提示优化
This commit is contained in:
21
sf_manufacturing/i18n/zh_CN.po
Normal file
21
sf_manufacturing/i18n/zh_CN.po
Normal file
@@ -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"
|
||||||
@@ -1622,7 +1622,7 @@ class MrpProduction(models.Model):
|
|||||||
def _subcontract_sanity_check(self):
|
def _subcontract_sanity_check(self):
|
||||||
for production in self:
|
for production in self:
|
||||||
if production.product_tracking != 'none' and not self.lot_producing_id:
|
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:
|
for sml in production.move_raw_ids.move_line_ids:
|
||||||
if sml.tracking != 'none' and not sml.lot_id:
|
if sml.tracking != 'none' and not sml.lot_id:
|
||||||
picking_ids = production.picking_ids.filtered(
|
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]
|
['%s:%s' % (picking.picking_type_id.name, picking.name) for picking in picking_ids]
|
||||||
)
|
)
|
||||||
if picking_info:
|
if picking_info:
|
||||||
raise UserError(_('您有%s补给未完成: %s') % (
|
raise UserError(_('You have %s incomplete supplies: %s') % (
|
||||||
picking_num, picking_info))
|
picking_num, picking_info))
|
||||||
else:
|
else:
|
||||||
raise UserError(
|
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
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user