新增夹具和功能夹具,及同步mrs的夹具和功能夹具
This commit is contained in:
48
sf_base/models/fixture.py
Normal file
48
sf_base/models/fixture.py
Normal file
@@ -0,0 +1,48 @@
|
||||
from odoo import models, fields, api
|
||||
|
||||
|
||||
class FixtureMaterial(models.Model):
|
||||
_name = 'sf.fixture.material'
|
||||
_description = "夹具物料"
|
||||
|
||||
code = fields.Char(string='编码')
|
||||
name = fields.Char(string="名称", size=15)
|
||||
remark = fields.Char(string="备注")
|
||||
|
||||
|
||||
class Multi_MountingType(models.Model):
|
||||
_name = 'sf.multi_mounting.type'
|
||||
_description = "联装类型"
|
||||
|
||||
code = fields.Char(string='编码')
|
||||
name = fields.Char(string="名称", size=15)
|
||||
remark = fields.Char(string="备注")
|
||||
|
||||
|
||||
class FixtureModel(models.Model):
|
||||
_name = 'sf.fixture.model'
|
||||
_description = "夹具型号"
|
||||
|
||||
code = fields.Char(string='编码')
|
||||
name = fields.Char(string="名称", size=15)
|
||||
fixture_material_id = fields.Many2one('mrs.fixture.material', string="夹具物料", )
|
||||
multi_mounting_model_id = fields.Many2one('mrs.multi_mounting.type', string="联装类型")
|
||||
brand_id = fields.Many2one('mrs.machine.brand', string="品牌")
|
||||
clamping_way = fields.Char(string="装夹方式")
|
||||
port_type = fields.Char(string="接口类型")
|
||||
model_file = fields.Binary(string="3D模型图")
|
||||
length = fields.Char(string="长度[mm]")
|
||||
width = fields.Char(string="宽度[mm]")
|
||||
height = fields.Char(string="高度[mm]")
|
||||
weight = fields.Char(string="重量[kg]")
|
||||
clamp_workpiece_length_max = fields.Char(string="夹持工件长度MAX[mm]")
|
||||
clamp_workpiece_width_max = fields.Char(string="夹持工件宽度MAX[mm]")
|
||||
clamp_workpiece_height_max = fields.Char(string="夹持工件高度MAX[mm]")
|
||||
clamp_workpiece_diameter_max = fields.Char(string="夹持工件直径MAX[mm]")
|
||||
maximum_carrying_weight = fields.Char(string="最大承载重量[kg]")
|
||||
Maximum_clamping_force = fields.Char(string="最大夹持力[n]")
|
||||
materials_model_id = fields.Many2one('mrs.materials.model', string="材料型号")
|
||||
driving_way = fields.Char(string="驱动方式")
|
||||
apply_machine_tool_type = fields.Char(string="适用机床型号")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user