提交 bca1c12d authored 作者: 贺阳's avatar 贺阳

下载pod的优化

上级 1e000827
......@@ -648,7 +648,7 @@ msgstr "批量关联转单号"
#. module: ccs_base
#: model:ir.actions.server,name:ccs_base.bl_download_pod_server_action
msgid "Batch PickUp Download POD"
msgid "Batch Download PickUp POD"
msgstr "批量下载货站提货POD"
#. module: ccs_base
......
......@@ -1294,7 +1294,7 @@ class CcBL(models.Model):
has_files = self.env['cc.clearance.file'].search_count(
[('bl_id', 'in', self.ids), ('file_name', '=', pod_name), ('file', '!=', False)])
if not has_files:
raise UserError(_('Please configure %s file of the bill of loading first.'),pod_name)
raise UserError(_('Please configure %s file of the bill of loading first.') % pod_name)
return self.action_download_pod(pod_name)
......
......@@ -442,7 +442,7 @@
<!-- 下载货站提货POD-->
<record id="bl_download_pod_server_action" model="ir.actions.server">
<field name="name">Batch PickUp Download POD</field>
<field name="name">Batch Download PickUp POD</field>
<field name="model_id" ref="model_cc_bl"/>
<field name="binding_model_id" ref="model_cc_bl"/>
<field name="state">code</field>
......@@ -450,7 +450,7 @@
<field name="groups_id" eval="[(4, ref('ccs_base.group_clearance_of_customs_user'))]"/>
<field name="code">
if records:
action = records.action_batch_download_pod(pod_name='货站提货POD')
action = records.action_batch_download_pod('货站提货POD')
</field>
</record>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论