优化消息模版

This commit is contained in:
jinling.yang
2024-09-18 17:39:06 +08:00
parent 8bf1c56efd
commit 43f53197c4
21 changed files with 73 additions and 18 deletions

View File

@@ -181,7 +181,7 @@ class MachineTableToolChangingApply(models.Model):
class CAMWorkOrderProgramKnifePlan(models.Model):
_name = 'sf.cam.work.order.program.knife.plan'
_inherit = ['mail.thread', 'sf.message.template']
_inherit = ['mail.thread']
_description = 'CAM工单程序用刀计划'
name = fields.Char('工单任务编号')
@@ -349,7 +349,7 @@ class CAMWorkOrderProgramKnifePlan(models.Model):
class FunctionalToolAssembly(models.Model):
_name = 'sf.functional.tool.assembly'
_inherit = ['mail.thread', 'barcodes.barcode_events_mixin', 'sf.message.template']
_inherit = ['mail.thread', 'barcodes.barcode_events_mixin']
_description = '功能刀具组装'
_order = 'tool_loading_time desc, use_tool_time asc'
@@ -1143,7 +1143,7 @@ class FunctionalToolAssembly(models.Model):
class FunctionalToolDismantle(models.Model):
_name = 'sf.functional.tool.dismantle'
_inherit = ["barcodes.barcode_events_mixin", 'mail.thread', 'sf.message.template']
_inherit = ["barcodes.barcode_events_mixin", 'mail.thread']
_description = '功能刀具拆解'
def on_barcode_scanned(self, barcode):