优化消息模版

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

@@ -18,7 +18,7 @@ from odoo.addons.sf_mrs_connect.models.ftp_operate import FtpController
class ResMrpWorkOrder(models.Model):
_inherit = ['mrp.workorder', 'sf.message.template']
_inherit = ['mrp.workorder']
_order = 'sequence asc'
product_tmpl_name = fields.Char('坯料产品名称', related='production_bom_id.bom_line_ids.product_id.name')