diff --git a/sf_base/models/sf_base.py b/sf_base/models/sf_base.py
index 453f6eb0..d10f190e 100644
--- a/sf_base/models/sf_base.py
+++ b/sf_base/models/sf_base.py
@@ -247,3 +247,20 @@ class CuttingToolType(models.Model):
brand_id = fields.Many2one('mrs.machine.brand', string='品牌')
remark = fields.Text('备注')
active = fields.Boolean('有效', default=True)
+
+class CNCprocessing(models.Model):
+ _name = 'cnc.processing'
+ _description = "CNC加工"
+
+ FNo = fields.Char(string="序号")
+ FPGName = fields.Char(string="程序名")
+ FKnifeName = fields.Char(string="刀具名称")
+ FDNo = fields.Char(string="刀号")
+ FWorkType = fields.Char(string="加工类型")
+ FXY = fields.Char(string="余量_X/Y")
+ FZ = fields.Char(string="余量_Z")
+ FJGSD = fields.Char(string="加工深度(Z)")
+ FSCCD = fields.Char(string="刀具伸出长度")
+ FDJSpec = fields.Char(string="刀柄型号")
+ FJGDate = fields.Char(string="预计加工时间")
+ FComment = fields.Char(string="备注")
diff --git a/sf_base/models/sf_common.py b/sf_base/models/sf_common.py
index 0d86e593..b1abf43b 100644
--- a/sf_base/models/sf_common.py
+++ b/sf_base/models/sf_common.py
@@ -72,9 +72,9 @@ class Tray(models.Model):
_name = 'sf.tray'
_description = '托盘'
- code = fields.Char('编码')
+ code = fields.Char('编码',copy=False)
name = fields.Char('名称')
state = fields.Selection(
[("空闲", "空闲"), ("占用", "占用"), ("报损", "报损")],
- default=" ", string="状态")
+ default="空闲", string="状态")
active = fields.Boolean('有效', default=True)
diff --git a/sf_base/security/ir.model.access.csv b/sf_base/security/ir.model.access.csv
index 5b4aa249..930fcd07 100644
--- a/sf_base/security/ir.model.access.csv
+++ b/sf_base/security/ir.model.access.csv
@@ -13,6 +13,7 @@ access_mrs_production_materials,mrs_production_materials,model_mrs_production_ma
access_mrs_materials_model,mrs_materials_model,model_mrs_materials_model,base.group_user,1,1,1,1
access_mrs_processing_technology,mrs_processing_technology,model_mrs_processing_technology,base.group_user,1,1,1,1
access_sf_tray,sf_tray,model_sf_tray,base.group_user,1,1,1,1
+access_cnc_processing,cnc_processing,model_cnc_processing,base.group_user,1,1,1,1
diff --git a/sf_base/views/mrs_common_view.xml b/sf_base/views/mrs_common_view.xml
index 1877de05..4f9374e1 100644
--- a/sf_base/views/mrs_common_view.xml
+++ b/sf_base/views/mrs_common_view.xml
@@ -281,14 +281,18 @@
sf.tray.search
sf.tray
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -308,11 +312,11 @@
sf.tray.form
sf.tray
+