增加打印日志
This commit is contained in:
@@ -19,6 +19,7 @@ class MrpWorkorder(models.Model):
|
||||
if pdf_data:
|
||||
try:
|
||||
# 执行打印
|
||||
_logger.info(f"准备打印工单 {wo.name} 的PDF")
|
||||
self.env['jikimo.printing'].print_pdf(pdf_data)
|
||||
wo.production_id.product_id.is_print_program = True
|
||||
_logger.info(f"工单 {wo.name} 的PDF已成功打印")
|
||||
|
||||
Reference in New Issue
Block a user