_('The small package node or bill of lading node is not in the completed node, and the bill of lading cannot be changed to completed!'))# 小包节点或提单节点不在已完成节点,提单不能变为已完成!
defdone_func(self,is_email=False):
defdone_func(self,is_email=False,**kwargs):
"""
变为已完成
"""
foriteminself:
ifitem.state=='ccing':
item.state='done'
# 如果选择了忽略节点异常,则记录异常原因
ifkwargs.get('exception_reason'):
exception_reason=kwargs['exception_reason']
#输出当前用户是什么语言
ifself.env.user.lang=='zh_CN':
message='提单已完成,但存在节点异常,原因是:%s!'%exception_reason
else:
message='The bill of loading is completed, but the node exception reason is %s!'%exception_reason
_('The small package node or bill of lading node is not in the completed node, and the bill of lading cannot be changed to completed!'))# 小包节点或提单节点不在已完成节点,提单不能变为已完成!