From 062b50d34c0180987a6e6e684e2d3d75501b52d7 Mon Sep 17 00:00:00 2001 From: yuxianghui <1608204036@qq.com> Date: Fri, 16 Jun 2023 11:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=B7=A5=E5=8E=82=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=A4=87=E6=B3=A8=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/models/base.py | 4 ++-- sf_base/models/tool_base.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sf_base/models/base.py b/sf_base/models/base.py index aeb0c0ac..b547f5b6 100644 --- a/sf_base/models/base.py +++ b/sf_base/models/base.py @@ -73,7 +73,7 @@ class MachineTool(models.Model): z_axis = fields.Integer('Z轴') b_axis = fields.Integer('B轴') c_axis = fields.Integer('C轴') - remark = fields.Text('备注') + remark = fields.Char('备注') is_binding = fields.Boolean('是否绑定机床', default=False) precision = fields.Float('加工精度') control_system_id = fields.Many2one('sf.machine.control_system', @@ -296,7 +296,7 @@ class MachineToolType(models.Model): z_axis = fields.Integer('Z轴') b_axis = fields.Integer('B轴') c_axis = fields.Integer('C轴') - remark = fields.Text('备注') + remark = fields.Char('备注') precision = fields.Float('加工精度') control_system_id = fields.Many2one('sf.machine.control_system', string="控制系统") diff --git a/sf_base/models/tool_base.py b/sf_base/models/tool_base.py index 33426cd4..e396d82c 100644 --- a/sf_base/models/tool_base.py +++ b/sf_base/models/tool_base.py @@ -53,7 +53,7 @@ class FunctionalCuttingToolModel(models.Model): name = fields.Char('名称') code = fields.Char('编码') - remark = fields.Text('备注') + remark = fields.Char('备注') # 整体式刀具 @@ -94,7 +94,7 @@ class IntegralCuttingToolModel(models.Model): name = fields.Char('名称') # 关联刀具物料 cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') - remark = fields.Text('备注') + remark = fields.Char('备注') # 刀片 @@ -140,7 +140,7 @@ class BladeModel(models.Model): cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') # 刀片类型字段,关联刀片对象 blade_ids = fields.One2many('sf.blade', 'blade_model_number', '刀片类型') - remark = fields.Text('备注') + remark = fields.Char('备注') # 刀杆 @@ -180,7 +180,7 @@ class CutterBarModel(models.Model): name = fields.Char('名称') # 关联刀具物料 cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') - remark = fields.Text('备注') + remark = fields.Char('备注') # 刀盘 @@ -220,7 +220,7 @@ class CutterPadModel(models.Model): name = fields.Char('名称') # 关联刀具物料 cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') - remark = fields.Text('备注') + remark = fields.Char('备注') # 刀柄 @@ -260,7 +260,7 @@ class HandleModel(models.Model): name = fields.Char('名称') # 关联刀具物料 cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') - remark = fields.Text('备注') + remark = fields.Char('备注') # 夹头对象(夹头型号对象) @@ -298,4 +298,4 @@ class ChuckModel(models.Model): name = fields.Char('名称') # 关联刀具物料 cutting_tool_material = fields.Many2one('sf.cutting.tool.material', '刀具物料') - remark = fields.Text('备注') + remark = fields.Char('备注')