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

向导显示名称优化

上级 cd1abb3c
......@@ -1169,7 +1169,7 @@ class CcBL(models.Model):
def action_batch_get_pod_info(self):
"""批量获取尾程POD信息"""
return {
'name': _('Preview POD Files'),#展示预览文件 #_('Batch Get POD Info'),
'name': _('Batch Get POD Info'),
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_model': 'batch.get.pod.info.wizard',
......
......@@ -103,6 +103,7 @@ class BatchGetPodInfoWizard(models.TransientModel):
# 返回表单视图
return {
'type': 'ir.actions.act_window',
'name': _('Batch Get POD Info'),
'res_model': 'batch.get.pod.info.wizard',
'view_mode': 'form',
'res_id': self.id,
......@@ -114,6 +115,7 @@ class BatchGetPodInfoWizard(models.TransientModel):
self.show_error_message = _('预览操作失败: %s') % str(e)
return {
'type': 'ir.actions.act_window',
'name': _('Batch Get POD Info'),
'res_model': 'batch.get.pod.info.wizard',
'view_mode': 'form',
'res_id': self.id,
......@@ -178,6 +180,7 @@ class BatchGetPodInfoWizard(models.TransientModel):
return {
'type': 'ir.actions.act_window',
'res_model': 'batch.get.pod.info.wizard',
'name': _('Batch Get POD Info'),
'view_mode': 'form',
'res_id': self.id,
'target': 'new',
......@@ -190,6 +193,7 @@ class BatchGetPodInfoWizard(models.TransientModel):
return {
'type': 'ir.actions.act_window',
'res_model': 'batch.get.pod.info.wizard',
'name': _('Batch Get POD Info'),
'view_mode': 'form',
'res_id': self.id,
'target': 'new',
......@@ -222,6 +226,7 @@ class BatchGetPodInfoWizard(models.TransientModel):
return {
'type': 'ir.actions.act_window',
'res_model': 'batch.get.pod.info.wizard',
'name': _('Batch Get POD Info'),
'view_mode': 'form',
'res_id': self.id,
'target': 'new',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论