From 2eadcbe31af671b8a767a7b0f83cc55541404654 Mon Sep 17 00:00:00 2001
From: "qihao.gong@jikimo.com"
Date: Tue, 13 Jun 2023 10:40:58 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=80=E5=85=B7?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97=20=E5=8F=8A=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_tool_management/__init__.py | 2 ++
sf_tool_management/__manifest__.py | 30 ++++++++++++++++++++++++++
sf_tool_management/models/__init__.py | 4 ++++
sf_tool_management/models/base.py | 3 +++
sf_tool_management/views/menu_view.xml | 18 ++++++++++++++++
5 files changed, 57 insertions(+)
create mode 100644 sf_tool_management/__init__.py
create mode 100644 sf_tool_management/__manifest__.py
create mode 100644 sf_tool_management/models/__init__.py
create mode 100644 sf_tool_management/models/base.py
create mode 100644 sf_tool_management/views/menu_view.xml
diff --git a/sf_tool_management/__init__.py b/sf_tool_management/__init__.py
new file mode 100644
index 00000000..041ffad6
--- /dev/null
+++ b/sf_tool_management/__init__.py
@@ -0,0 +1,2 @@
+# -*-coding:utf-8-*-
+from . import models
\ No newline at end of file
diff --git a/sf_tool_management/__manifest__.py b/sf_tool_management/__manifest__.py
new file mode 100644
index 00000000..571b1a6b
--- /dev/null
+++ b/sf_tool_management/__manifest__.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+{
+ 'name': '机企猫智能工厂 刀具管理',
+ 'version': '1.0',
+ 'summary': '智能工厂刀具管理',
+ 'sequence': 1,
+ 'description': """
+在本模块,定义了主要的角色、菜单、基础业务对象
+ """,
+ 'category': 'sf',
+ 'website': 'https://www.sf.jikimo.com',
+ 'depends': ['account', 'sf_base', 'mrp'],
+ 'data': [
+ 'views/menu_view.xml'
+ ],
+ 'demo': [
+ ],
+ 'assets': {
+
+ 'web.assets_qweb': [
+ ],
+
+
+ },
+ 'license': 'LGPL-3',
+ 'installable': True,
+ 'application': False,
+ 'auto_install': False,
+}
diff --git a/sf_tool_management/models/__init__.py b/sf_tool_management/models/__init__.py
new file mode 100644
index 00000000..61a05d94
--- /dev/null
+++ b/sf_tool_management/models/__init__.py
@@ -0,0 +1,4 @@
+from . import base
+
+
+
diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py
new file mode 100644
index 00000000..faaaf799
--- /dev/null
+++ b/sf_tool_management/models/base.py
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+
diff --git a/sf_tool_management/views/menu_view.xml b/sf_tool_management/views/menu_view.xml
new file mode 100644
index 00000000..82d38b81
--- /dev/null
+++ b/sf_tool_management/views/menu_view.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
From c919dac8cbed984b4f5d247ee6d3d1bb22f16e3d Mon Sep 17 00:00:00 2001
From: "qihao.gong@jikimo.com"
Date: Tue, 13 Jun 2023 17:33:38 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E5=88=80=E5=85=B7=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_base/views/tool_base_views.xml | 24 +++-
sf_tool_management/__manifest__.py | 5 +-
sf_tool_management/models/base.py | 21 ++++
.../security/group_security.xml | 4 +
.../security/ir.model.access.csv | 7 ++
sf_tool_management/views/menu_view.xml | 27 ++++-
sf_tool_management/views/tool_base_views.xml | 108 ++++++++++++++++++
7 files changed, 186 insertions(+), 10 deletions(-)
create mode 100644 sf_tool_management/security/group_security.xml
create mode 100644 sf_tool_management/security/ir.model.access.csv
create mode 100644 sf_tool_management/views/tool_base_views.xml
diff --git a/sf_base/views/tool_base_views.xml b/sf_base/views/tool_base_views.xml
index 417d96c1..9da3b89c 100644
--- a/sf_base/views/tool_base_views.xml
+++ b/sf_base/views/tool_base_views.xml
@@ -7,10 +7,26 @@
sf.functional.cutting.tool
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sf_tool_management/__manifest__.py b/sf_tool_management/__manifest__.py
index 571b1a6b..da1ea72c 100644
--- a/sf_tool_management/__manifest__.py
+++ b/sf_tool_management/__manifest__.py
@@ -12,7 +12,10 @@
'website': 'https://www.sf.jikimo.com',
'depends': ['account', 'sf_base', 'mrp'],
'data': [
- 'views/menu_view.xml'
+ 'security/group_security.xml',
+ 'security/ir.model.access.csv',
+ 'views/tool_base_views.xml',
+ 'views/menu_view.xml',
],
'demo': [
],
diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py
index faaaf799..dae9ca9f 100644
--- a/sf_tool_management/models/base.py
+++ b/sf_tool_management/models/base.py
@@ -1,3 +1,24 @@
# -*- coding: utf-8 -*-
+from odoo import fields, models, api
+# 功能刀具预警
+class FunctionalCuttingToolWarning(models.Model):
+ _name = 'sf.functional.cutting.tool.warning'
+ _inherit = 'sf.functional.cutting.tool'
+ _description = '功能刀具预警'
+
+ install_tool_time = fields.Char("装刀时间")
+ outbound_time = fields.Char('出库时间')
+ on_board_time = fields.Char('上机时间')
+ machine_tool_code = fields.Char('机台号')
+ cutting_tool_code = fields.Char('刀位号')
+ idle_time = fields.Char('闲置时长')
+ alarm_value = fields.Char('报警值')
+ used_value = fields.Char('已使用值')
+ alarm_type = fields.Char('报警类型')
+ alarm_time = fields.Char('报警时间')
+ dispose_user = fields.Char('处理人')
+ dispose_time = fields.Char('处理时间')
+ dispose_func = fields.Char('处理方法/措施')
+ remake = fields.Char('备注')
diff --git a/sf_tool_management/security/group_security.xml b/sf_tool_management/security/group_security.xml
new file mode 100644
index 00000000..b8668782
--- /dev/null
+++ b/sf_tool_management/security/group_security.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/sf_tool_management/security/ir.model.access.csv b/sf_tool_management/security/ir.model.access.csv
new file mode 100644
index 00000000..d1ff33f5
--- /dev/null
+++ b/sf_tool_management/security/ir.model.access.csv
@@ -0,0 +1,7 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_sf_functional_cutting_tool_warning,sf.functional.cutting.tool.warning,model_sf_functional_cutting_tool_warning,base.group_user,1,1,1,1
+
+
+
+
+
diff --git a/sf_tool_management/views/menu_view.xml b/sf_tool_management/views/menu_view.xml
index 82d38b81..1ac1c750 100644
--- a/sf_tool_management/views/menu_view.xml
+++ b/sf_tool_management/views/menu_view.xml
@@ -1,18 +1,35 @@
+
+
+ 功能刀具预警
+ ir.actions.act_window
+ sf.functional.cutting.tool.warning
+ tree,form
+
+
+
+ name="功能刀具列表"
+ sequence="3"
+ action="sf_base.action_sf_functional_cutting_tool"
+ />
+
+
\ No newline at end of file
diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml
new file mode 100644
index 00000000..11527768
--- /dev/null
+++ b/sf_tool_management/views/tool_base_views.xml
@@ -0,0 +1,108 @@
+
+
+
+
+
+ sf.functional.cutting.tool.warning.tree
+ sf.functional.cutting.tool.warning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sf.functional.cutting.tool.warning.form
+ sf.functional.cutting.tool.warning
+
+
+
+
+
+
+
+
+
From b8dc06a7c71bef5d4559540809242697510d395a Mon Sep 17 00:00:00 2001
From: "qihao.gong@jikimo.com"
Date: Wed, 14 Jun 2023 17:18:03 +0800
Subject: [PATCH 3/7] =?UTF-8?q?sf=E5=8A=9F=E8=83=BD=E5=88=80=E5=85=B7?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_tool_management/models/base.py | 4 ++--
sf_tool_management/views/menu_view.xml | 2 +-
sf_tool_management/views/tool_base_views.xml | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/sf_tool_management/models/base.py b/sf_tool_management/models/base.py
index dae9ca9f..e83e9277 100644
--- a/sf_tool_management/models/base.py
+++ b/sf_tool_management/models/base.py
@@ -2,8 +2,8 @@
from odoo import fields, models, api
# 功能刀具预警
-class FunctionalCuttingToolWarning(models.Model):
- _name = 'sf.functional.cutting.tool.warning'
+class FunctionalCuttingToolEntity(models.Model):
+ _name = 'sf.functional.cutting.tool.entity'
_inherit = 'sf.functional.cutting.tool'
_description = '功能刀具预警'
diff --git a/sf_tool_management/views/menu_view.xml b/sf_tool_management/views/menu_view.xml
index 1ac1c750..67ccc2aa 100644
--- a/sf_tool_management/views/menu_view.xml
+++ b/sf_tool_management/views/menu_view.xml
@@ -5,7 +5,7 @@
功能刀具预警
ir.actions.act_window
- sf.functional.cutting.tool.warning
+ sf.functional.cutting.tool.entity
tree,form
diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml
index 11527768..f473dcc5 100644
--- a/sf_tool_management/views/tool_base_views.xml
+++ b/sf_tool_management/views/tool_base_views.xml
@@ -3,8 +3,8 @@
- sf.functional.cutting.tool.warning.tree
- sf.functional.cutting.tool.warning
+ sf.functional.cutting.tool.entity.tree
+ sf.functional.cutting.tool.entity
@@ -37,8 +37,8 @@
- sf.functional.cutting.tool.warning.form
- sf.functional.cutting.tool.warning
+ sf.functional.cutting.tool.entity.form
+ sf.functional.cutting.tool.entity
- #------------------刀具型号------------------
-
-
- 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/fixture_base_view.xml b/sf_base/views/fixture_base_view.xml
new file mode 100644
index 00000000..09cd4b86
--- /dev/null
+++ b/sf_base/views/fixture_base_view.xml
@@ -0,0 +1,681 @@
+
+
+
+
+
+ 定位元件型号
+ sf.fixture.setting.element
+
+
+
+
+
+
+
+
+
+
+
+
+ 定位元件型号
+ sf.fixture.setting.element
+
+
+
+
+
+
+ 定位元件型号
+ ir.actions.act_window
+ sf.fixture.setting.element
+ tree,form
+
+
+
+
+
+
+ 定位原件类型
+ sf.setting.element.type
+
+
+
+
+
+
+
+
+
+ 定位元件类型
+ sf.setting.element.type
+
+
+
+
+
+
+ 定位元件类型
+ ir.actions.act_window
+ sf.setting.element.type
+ tree,form
+
+
+
+
+
+
+
+ 夹紧元件型号
+ sf.fixture.clamping.element
+
+
+
+
+
+
+
+
+
+
+
+
+ 夹紧元件型号
+ sf.fixture.clamping.element
+
+
+
+
+
+
+ 夹紧元件型号
+ ir.actions.act_window
+ sf.fixture.clamping.element
+ tree,form
+
+
+
+
+
+
+
+ 夹紧元件类型
+ sf.clamping.element.type
+
+
+
+
+
+
+
+
+
+ 夹紧元件类型
+ sf.clamping.element.type
+
+
+
+
+
+
+ 夹紧元件类型
+ ir.actions.act_window
+ sf.clamping.element.type
+ tree,form
+
+
+
+
+
+
+ 对刀夹具型号
+ sf.fixture.tool.setting
+
+
+
+
+
+
+
+
+
+
+
+
+ 对刀夹具型号
+ sf.fixture.tool.setting
+
+
+
+
+
+
+ 对刀夹具型号
+ ir.actions.act_window
+ sf.fixture.tool.setting
+ tree,form
+
+
+
+
+
+ 对刀夹具类型
+ sf.tool.setting.type
+
+
+
+
+
+
+
+
+
+ 对刀夹具类型
+ sf.tool.setting.type
+
+
+
+
+
+
+ 对刀夹具类型
+ ir.actions.act_window
+ sf.tool.setting.type
+ tree,form
+
+
+
+
+
+
+ 定位装置型号
+ sf.fixture.locating.device
+
+
+
+
+
+
+
+
+
+
+
+
+ 定位装置型号
+ sf.fixture.locating.device
+
+
+
+
+
+
+ 定位装置型号
+ ir.actions.act_window
+ sf.fixture.locating.device
+ tree,form
+
+
+
+
+
+ 定位装置类型
+ sf.locating.device.type
+
+
+
+
+
+
+
+
+
+ 定位装置类型
+ sf.locating.device.type
+
+
+
+
+
+
+ 定位装置类型
+ ir.actions.act_window
+ sf.locating.device.type
+ tree,form
+
+
+
+
+
+ 定位装置定位方式
+ sf.locating.device.locate.mode
+
+
+
+
+
+
+
+
+
+ 定位装置定位方式
+ sf.locating.device.locate.mode
+
+
+
+
+
+
+ 定位装置定位方式
+ ir.actions.act_window
+ sf.locating.device.locate.mode
+ tree,form
+
+
+
+
+
+ 导向元件型号
+ sf.fixture.guide.element
+
+
+
+
+
+
+
+
+
+
+
+
+ 导向元件型号
+ sf.fixture.guide.element
+
+
+
+
+
+
+ 导向元件型号
+ ir.actions.act_window
+ sf.fixture.guide.element
+ tree,form
+
+
+
+
+
+ 导向元件类型
+ sf.guide.element.type
+
+
+
+
+
+
+
+
+
+ 导向元件类型
+ sf.guide.element.type
+
+
+
+
+
+
+ 导向元件类型
+ ir.actions.act_window
+ sf.guide.element.type
+ tree,form
+
+
+
+
+
+
+ 导向元件导向方式
+ sf.guide.element.guide.mode
+
+
+
+
+
+
+
+
+
+ 导向元件导向方式
+ sf.guide.element.guide.mode
+
+
+
+
+
+
+ 导向元件导向方式
+ ir.actions.act_window
+ sf.guide.element.guide.mode
+ tree,form
+
+
+
+
+
+
+ 导向元件安装方式
+ sf.guide.element.way.to.install
+
+
+
+
+
+
+
+
+
+ 导向元件安装方式
+ sf.guide.element.way.to.install
+
+
+
+
+
+
+ 导向元件安装方式
+ ir.actions.act_window
+ sf.guide.element.way.to.install
+ tree,form
+
+
+
+
+
\ No newline at end of file
diff --git a/sf_base/views/menu_fixture_view.xml b/sf_base/views/menu_fixture_view.xml
new file mode 100644
index 00000000..4a5e1283
--- /dev/null
+++ b/sf_base/views/menu_fixture_view.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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"/>
-
-
-
-
-
-