提交 9441f0b7 authored 作者: 贺阳's avatar 贺阳

翻译和提示优化

上级 03670818
......@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-17 07:22+0000\n"
"PO-Revision-Date: 2025-10-17 15:27+0800\n"
"POT-Creation-Date: 2025-10-28 01:36+0000\n"
"PO-Revision-Date: 2025-10-28 09:37+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
......@@ -65,6 +65,15 @@ msgstr "%s %s 操作了异常信息,异常原因:%s,未发送%s邮件"
msgid "%s bill of loading cannot find release note file"
msgstr "%s 提单无法找到release note文件"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/wizard/batch_get_pod_info_wizard.py:0
#, python-format
msgid ""
"%s bill of loading cannot get node operation time,please manually upload "
"push tk"
msgstr "%s提单号没有获取到节点操作时间,请手动上传推送tk"
#. module: ccs_base
#: model:mail.template,body_html:ccs_base.email_template_exception_notification_en
msgid ""
......@@ -220,7 +229,7 @@ msgid ""
"<strong>Remove Specified Text:</strong> Remove specified text (AGN, UCLINK "
"LOGISITICS LTD) from PDF files"
msgstr ""
"<strong>涂抹指定文字:</strong>从 PDF 文件中删除指定文本(AGN、UCLINK "
"<strong>删除指定文本:</strong>从 PDF 文件中删除指定文本(AGN、UCLINK "
"LOGISITICS LTD)。"
#. module: ccs_base
......@@ -231,6 +240,16 @@ msgid ""
"container numbers"
msgstr "同步尾程POD:向TK同步尾程交接POD(待大包数量和箱号)的附件信息"
#. module: ccs_base
#: model_terms:ir.ui.view,arch_db:ccs_base.view_batch_get_pod_info_wizard_form
msgid ""
"<strong>Sync Push Match Node:</strong> Synchronize and push matched node "
"information based on POD file, extract time from red boxes as node "
"operation time"
msgstr ""
"<strong>同步推送匹配节点:</strong>根据 POD 文件同步推送匹配的节点信息,提取"
"时间作为节点运行时间"
#. module: ccs_base
#: model:ir.model.fields,help:ccs_base.field_batch_input_ship_package_status_wizard__exclude_tracking_no
#: model:ir.model.fields,help:ccs_base.field_batch_input_ship_package_status_wizard__select_tracking_no
......@@ -492,13 +511,6 @@ msgstr "添加包裹异常信息"
msgid "Add Package Exception Information Wizard"
msgstr "添加包裹异常信息向导"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/wizard/batch_get_pod_info_wizard.py:0
#, python-format
msgid "All API PDF files failed validation"
msgstr "所有API PDF文件验证都失败"
#. module: ccs_base
#: model:ir.model.fields,field_description:ccs_base.field_cc_history_package_sync_log__api_customer
msgid "Api Customer"
......@@ -2433,13 +2445,6 @@ msgstr "下一阶段服务商名称"
msgid "No Bill of Loading"
msgstr "提单号"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/wizard/batch_get_pod_info_wizard.py:0
#, python-format
msgid "No PDF files found"
msgstr "无法获取到pdf文件"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/wizard/batch_get_pod_info_wizard.py:0
......@@ -2569,6 +2574,20 @@ msgstr "只有已完成状态的提单可以追回!"
msgid "Only excel files can be uploaded!"
msgstr "只能上传excel文件!"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/models/cc_node.py:0
#, python-format
msgid "Only one package type node can be selected as POD node"
msgstr "只能选择一个小包类型节点作为 POD 节点"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/models/cc_node.py:0
#, python-format
msgid "Only package type nodes can be selected as POD nodes"
msgstr "只能选择小包类型节点作为 POD 节点"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/models/cc_bill_loading.py:0
......@@ -3430,6 +3449,11 @@ msgstr "同步日志"
msgid "Sync Logs"
msgstr "同步日志"
#. module: ccs_base
#: model:ir.model.fields,field_description:ccs_base.field_batch_get_pod_info_wizard__sync_match_node
msgid "Sync Push Match Node"
msgstr "同步推送匹配节点"
#. module: ccs_base
#: model:ir.model.fields,field_description:ccs_base.field_cc_clearance_file__upload_time
#: model:ir.model.fields,field_description:ccs_base.field_cc_history_package_sync_log__sync_time
......@@ -3488,6 +3512,12 @@ msgstr ""
msgid "TYPE"
msgstr "类型"
#. module: ccs_base
#: model:ir.model.fields,field_description:ccs_base.field_cc_node__is_pod_node
#: model_terms:ir.ui.view,arch_db:ccs_base.tree_cc_node_view
msgid "Tail POD Node Match"
msgstr "尾程POD节点匹配"
#. module: ccs_base
#. odoo-python
#: code:addons/ccs_base/models/cc_bill_loading.py:0
......@@ -3966,6 +3996,11 @@ msgstr "是否分大包导出"
msgid "Whether to remove specified text from PDF files"
msgstr "是否涂抹PDF中的指定文字"
#. module: ccs_base
#: model:ir.model.fields,help:ccs_base.field_batch_get_pod_info_wizard__sync_match_node
msgid "Whether to sync and push matched node information"
msgstr "是否同步推送匹配节点信息"
#. module: ccs_base
#: model:ir.model.fields,help:ccs_base.field_batch_get_pod_info_wizard__sync_last_mile_pod
msgid "Whether to sync last mile POD information"
......
......@@ -2,7 +2,7 @@
# 导入日志
import logging
from odoo import api, models, fields
from odoo import api, models, fields, _
from odoo.exceptions import ValidationError
# 获取日志
......@@ -54,20 +54,21 @@ class CcNode(models.Model):
domain="[('node_type','=','package')]", index=True) # 对应小包状态
# 新增字段:尾程POD节点匹配,只有类型为小包的节点才能勾选
is_pod_node = fields.Boolean(string='Tail POD Node Match', default=False,
help='Only nodes of type "package" can be checked. Only one package node can be checked.')
is_pod_node = fields.Boolean(string='Tail POD Node Match', default=False)
@api.constrains('is_pod_node', 'node_type')
def _check_pod_node(self):
"""
约束:只有小包类型节点才能勾选POD节点
只能有一个小包节点可以勾选
Constraints: Only package type nodes can be selected as POD nodes
Only one package type node can be selected as POD node
"""
for record in self:
# 只有小包类型节点才能勾选尾程POD节点匹配
if record.is_pod_node and record.node_type != 'package':
raise ValidationError('只有小包类型节点才能勾选尾程POD节点匹配')
raise ValidationError(_("Only package type nodes can be selected as POD nodes"))
# 如果当前节点勾选了POD节点,检查是否已有其他小包节点勾选了
# Only one package type node can be selected as POD node
if record.is_pod_node and record.node_type == 'package':
existing_pod_nodes = self.search([
('is_pod_node', '=', True),
......@@ -75,7 +76,7 @@ class CcNode(models.Model):
('id', '!=', record.id)
])
if existing_pod_nodes:
raise ValidationError('只能有一个小包类型节点可以勾选尾程POD节点匹配')
raise ValidationError(_("Only one package type node can be selected as POD node"))
def node_is_sync(self):
# 如果更新节点是 默认节点 同步的标志变为True
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论