sf新增表面工艺参数同步接口和基础对象,新增dockerfile和requirements.txt文件
This commit is contained in:
@@ -49,6 +49,7 @@ class MrsProductionProcess(models.Model):
|
||||
processing_order_ids = fields.One2many('sf.processing.order', 'production_process_id', string='工序')
|
||||
partner_process_ids = fields.Many2many('res.partner', 'process_ids', '加工工厂')
|
||||
active = fields.Boolean('有效', default=True)
|
||||
parameter_ids = fields.One2many('sf.production.process.parameter', 'process_id', string='可选参数')
|
||||
|
||||
|
||||
class MrsProcessingTechnology(models.Model):
|
||||
@@ -96,3 +97,12 @@ class SupplierSort(models.Model):
|
||||
('supplier_sort_uniq', 'unique (partner_id,materials_model_id)', '排序不能重复!')
|
||||
]
|
||||
|
||||
class MrsProductionProcessParameter(models.Model):
|
||||
_name = 'sf.production.process.parameter'
|
||||
_description = '可选参数'
|
||||
name = fields.Char('参数名')
|
||||
active = fields.Boolean('有效', default=True)
|
||||
price = fields.Float('单价')
|
||||
process_id = fields.Many2one('sf.production.process', string='表面工艺')
|
||||
materials_model_ids = fields.Many2many('sf.materials.model', 'applicable_material', string='适用材料')
|
||||
code = fields.Char("编码")
|
||||
Reference in New Issue
Block a user