From 6068a55b7948f02d46d9b656868b01b6bc451baa Mon Sep 17 00:00:00 2001
From: "jinling.yang"
Date: Tue, 13 Jun 2023 17:30:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Esf=E7=9A=84=E5=88=80=E5=85=B7?=
=?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=9A=84=E7=9B=B8=E5=85=B3=E5=88=80=E5=85=B7?=
=?UTF-8?q?=E7=89=A9=E6=96=99=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_base/models/base.py | 27 ---
sf_base/security/ir.model.access.csv | 2 -
sf_base/views/base_view.xml | 150 ----------------
sf_base/views/menu_view.xml | 20 ---
sf_dlm/__manifest__.py | 7 +-
sf_dlm/data/cutting_tool_data.xml | 30 ++++
sf_dlm/data/product_data.xml | 31 ++--
sf_dlm/models/__init__.py | 3 +-
sf_dlm/views/product_template_view.xml | 58 ++++++-
sf_manufacturing/models/__init__.py | 2 +
sf_manufacturing/models/model_type.py | 22 ++-
.../models/product_template.py | 60 ++++++-
sf_manufacturing/models/product_workorder.py | 12 ++
sf_mrs_connect/data/ir_cron_data.xml | 22 ---
sf_mrs_connect/models/res_config_setting.py | 4 -
sf_mrs_connect/models/sync_common.py | 162 ------------------
16 files changed, 197 insertions(+), 415 deletions(-)
create mode 100644 sf_dlm/data/cutting_tool_data.xml
rename {sf_dlm => sf_manufacturing}/models/product_template.py (83%)
create mode 100644 sf_manufacturing/models/product_workorder.py
diff --git a/sf_base/models/base.py b/sf_base/models/base.py
index 4c77c114..aeb0c0ac 100644
--- a/sf_base/models/base.py
+++ b/sf_base/models/base.py
@@ -304,33 +304,6 @@ class MachineToolType(models.Model):
code = fields.Char('编码')
-# 刀具
-class CuttingTool(models.Model):
- _name = 'sf.cutting_tool.category'
- _description = '刀具类别'
- code = fields.Char('编码')
- name = fields.Char('名称')
- remark = fields.Text('备注')
- active = fields.Boolean('有效', default=True)
-
-
-class CuttingToolType(models.Model):
- _name = 'sf.cutting_tool.type'
- _description = '刀具型号'
- code = fields.Char('编码')
- name = fields.Char('名称')
- diameter = fields.Integer('直径')
- long_blade = fields.Integer('避空长/刃长')
- cone_angle_pitch = fields.Integer('锥角/节距')
- shank_diameter = fields.Integer('柄径')
- taper_shank_length = fields.Integer('锥柄长')
- tool_length = fields.Integer('刀具总长')
- blade_number = fields.Integer('刃数')
- category_id = fields.Many2one('sf.cutting_tool.category', string='刀具类别')
- brand_id = fields.Many2one('sf.machine.brand', string='品牌')
- remark = fields.Text('备注')
- active = fields.Boolean('有效', default=True)
-
class MachineToolCategory(models.Model):
_name = 'sf.machine_tool.category'
_description = '机床类型'
diff --git a/sf_base/security/ir.model.access.csv b/sf_base/security/ir.model.access.csv
index b75eee63..4c30d7bb 100644
--- a/sf_base/security/ir.model.access.csv
+++ b/sf_base/security/ir.model.access.csv
@@ -1,8 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_sf_machine_tool,sf_machine_tool,model_sf_machine_tool,base.group_user,1,1,1,1
-access_sf_cutting_tool_category,sf_cutting_tool_category,model_sf_cutting_tool_category,base.group_user,1,1,1,1
access_sf_machine_tool_type,sf_machine_tool_type,model_sf_machine_tool_type,base.group_user,1,1,1,1
-access_sf_cutting_tool_type,sf_cutting_tool_type,model_sf_cutting_tool_type,base.group_user,1,1,1,1
access_sf_machine_brand,sf_machine_brand,model_sf_machine_brand,base.group_user,1,1,1,1
access_sf_machine_brand_tags,sf_machine_brand_tags,model_sf_machine_brand_tags,base.group_user,1,1,1,1
access_sf_machine_control_system,sf_machine_control_system,model_sf_machine_control_system,base.group_user,1,1,1,1
diff --git a/sf_base/views/base_view.xml b/sf_base/views/base_view.xml
index 7aa192c1..75d481c8 100644
--- a/sf_base/views/base_view.xml
+++ b/sf_base/views/base_view.xml
@@ -255,156 +255,6 @@
- #------------------刀具型号------------------
-
-
- search.sf.cutting_tool.type
- sf.cutting_tool.type
-
-
-
-
-
-
-
-
- tree.sf.cutting_tool.type
- sf.cutting_tool.type
-
-
-
-
-
-
-
-
-
-
- form.sf.cutting_tool.type
- sf.cutting_tool.type
-
-
-
-
-
-
- 刀具型号
- ir.actions.act_window
- sf.cutting_tool.type
- tree,form
-
-
- [刀具型号] 还没有哦!点左上角的[创建]按钮,沙发归你了!
-
-
-
-
-
-
- #------------------刀具类别------------------
-
-
- search.sf.cutting_tool.category
- sf.cutting_tool.category
-
-
-
-
-
-
-
-
- tree.sf.cutting_tool.category
- sf.cutting_tool.category
-
-
-
-
-
-
-
-
-
- form.sf.cutting_tool.category
- sf.cutting_tool.category
-
-
-
-
-
-
- 刀具类别
- ir.actions.act_window
- sf.cutting_tool.category
- tree,form
-
-
- [刀具类别] 还没有哦!点左上角的[创建]按钮,沙发归你了!
-
-
-
-
-
#------------------机床注册------------------
diff --git a/sf_base/views/menu_view.xml b/sf_base/views/menu_view.xml
index e011a29d..c9b8f1c1 100644
--- a/sf_base/views/menu_view.xml
+++ b/sf_base/views/menu_view.xml
@@ -127,26 +127,6 @@
sequence="1"
action="action_sf_machine_tool_category"/>
-
-
-
-
-
-