新增同步mrs的表面工艺类别接口
This commit is contained in:
@@ -38,6 +38,17 @@ class MrsMaterialModel(models.Model):
|
||||
active = fields.Boolean('有效', default=True)
|
||||
|
||||
|
||||
class MrsProductionProcessCategory(models.Model):
|
||||
_name = 'sf.production.process.category'
|
||||
_description = '表面工艺类别'
|
||||
order = 'id desc'
|
||||
|
||||
name = fields.Char('名称')
|
||||
code = fields.Char("编码")
|
||||
production_process_ids = fields.One2many('sf.production.process', 'category_id', string="表面工艺")
|
||||
active = fields.Boolean('有效', default=True)
|
||||
|
||||
|
||||
# 工艺 编码,名称,备注
|
||||
class MrsProductionProcess(models.Model):
|
||||
_name = 'sf.production.process'
|
||||
@@ -51,6 +62,7 @@ class MrsProductionProcess(models.Model):
|
||||
active = fields.Boolean('有效', default=True)
|
||||
parameter_ids = fields.One2many('sf.production.process.parameter', 'process_id', string='可选参数')
|
||||
gain_way = fields.Selection([("自加工", "自加工"), ("外协", "外协")], default="", string="获取方式")
|
||||
category_id = fields.Many2one('sf.production.process.category')
|
||||
|
||||
|
||||
class MrsProcessingTechnology(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user