优化消息模版

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')

View File

@@ -9,8 +9,8 @@ from odoo.exceptions import ValidationError, UserError
from odoo.modules import get_resource_path
# from OCC.Extend.DataExchange import read_step_file
# from OCC.Extend.DataExchange import write_stl_file
from OCC.Extend.DataExchange import read_step_file
from OCC.Extend.DataExchange import write_stl_file
class ResProductMo(models.Model):

View File

@@ -545,7 +545,7 @@ class ProductionLot(models.Model):
class StockPicking(models.Model):
_inherit = ['stock.picking', 'sf.message.template']
_inherit = ['stock.picking']
surface_technics_parameters_id = fields.Many2one('sf.production.process.parameter', string="表面工艺可选参数")