新增同步夹具相关的定时器

This commit is contained in:
jinling.yang
2023-06-27 16:35:30 +08:00
parent 87e3f6d04e
commit d18b1808d9
6 changed files with 124 additions and 69 deletions

View File

@@ -25,9 +25,10 @@ class FixtureModel(models.Model):
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="品牌")
fixture_material_id = fields.Many2one('sf.fixture.material', string="夹具物料", )
fixture_material_type = fields.Char(string="夹具物料类型", related='fixture_material_id.name')
multi_mounting_type_id = fields.Many2one('sf.multi_mounting.type', string="联装类型")
brand_id = fields.Many2one('sf.machine.brand', string="品牌")
clamping_way = fields.Char(string="装夹方式")
port_type = fields.Char(string="接口类型")
model_file = fields.Binary(string="3D模型图")
@@ -41,8 +42,11 @@ class FixtureModel(models.Model):
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="材料型号")
materials_model_id = fields.Many2one('sf.materials.model', string="材料型号")
driving_way = fields.Char(string="驱动方式")
apply_machine_tool_type = fields.Char(string="适用机床型号")
through_hole_size = fields.Integer(string="过孔大小[mm]", size=6)
screw_size = fields.Integer(string="螺牙大小[mm]", size=6)