智能工厂定时同步基础数据完成
This commit is contained in:
@@ -18,10 +18,10 @@ class MachineBrandTags(models.Model):
|
||||
class MachineControlSystem(models.Model):
|
||||
_name = 'mrs.machine_tool.type.control_system'
|
||||
_description = '控制系统'
|
||||
|
||||
code = fields.Char('编码')
|
||||
name = fields.Char('名称', size=50)
|
||||
# type_id = fields.Many2one('mrs.machine_tool.type')
|
||||
|
||||
active = fields.Boolean('有效', default=True)
|
||||
|
||||
# 品牌标签
|
||||
class MachineBrand(models.Model):
|
||||
|
||||
@@ -38,8 +38,7 @@ class MrsProductionProcess(models.Model):
|
||||
_description = '表面工艺'
|
||||
name = fields.Char('表面工艺')
|
||||
remark = fields.Text("备注")
|
||||
processing_technology_ids = fields.Many2many('mrs.processing.technology', 'mrs_associated_processes',
|
||||
index=True)
|
||||
processing_order_ids = fields.One2many('mrs.processing.order', 'production_process_id', string='工序')
|
||||
partner_process_ids = fields.Many2many('res.partner', 'process_ids', '加工工厂')
|
||||
process_encode = fields.Char("编码")
|
||||
active = fields.Boolean('有效', default=True)
|
||||
@@ -49,14 +48,23 @@ class MrsProcessingTechnology(models.Model):
|
||||
_name = 'mrs.processing.technology'
|
||||
_description = '加工工艺'
|
||||
remark = fields.Text("备注")
|
||||
sequence = fields.Integer('Sequence', index=True)
|
||||
name = fields.Char('加工工艺', index=True)
|
||||
remark = fields.Text('备注', index=True)
|
||||
process_encode = fields.Char("编码")
|
||||
production_process_ids = fields.Many2many('mrs.production.process', 'mrs_associated_processes',
|
||||
index=True)
|
||||
processing_order_ids = fields.Many2many('mrs.processing.order', 'mrs_associated_processes',
|
||||
index=True, string='工序')
|
||||
active = fields.Boolean('有效', default=True)
|
||||
|
||||
class MrsProcessingOrder(models.Model):
|
||||
_name = 'mrs.processing.order'
|
||||
_description = '工序'
|
||||
sequence = fields.Integer('Sequence')
|
||||
|
||||
processing_technology_ids = fields.Many2many('mrs.processing.technology', 'mrs_associated_processes',
|
||||
|
||||
index=True, string='加工工艺')
|
||||
|
||||
production_process_id = fields.Many2one('mrs.production.process', string="表面工艺")
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
Reference in New Issue
Block a user