From 8193ecc9931883e250e151a31bc2d0b5817bffd6 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Fri, 23 May 2025 15:04:56 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yuthon_base/__init__.py | 2 ++
yuthon_base/__manifest__.py | 18 ++++++++++++++++++
yuthon_base/models/__init__.py | 1 +
yuthon_base/models/inherit_ir_attachment.py | 16 ++++++++++++++++
yuthon_base/security/ir.model.access.csv | 2 ++
yuthon_trade/views/yuthon_trade_menu.xml | 10 +++++-----
6 files changed, 44 insertions(+), 5 deletions(-)
create mode 100644 yuthon_base/__init__.py
create mode 100644 yuthon_base/__manifest__.py
create mode 100644 yuthon_base/models/__init__.py
create mode 100644 yuthon_base/models/inherit_ir_attachment.py
create mode 100644 yuthon_base/security/ir.model.access.csv
diff --git a/yuthon_base/__init__.py b/yuthon_base/__init__.py
new file mode 100644
index 000000000..24c19d687
--- /dev/null
+++ b/yuthon_base/__init__.py
@@ -0,0 +1,2 @@
+
+from . import models
\ No newline at end of file
diff --git a/yuthon_base/__manifest__.py b/yuthon_base/__manifest__.py
new file mode 100644
index 000000000..d1913e99f
--- /dev/null
+++ b/yuthon_base/__manifest__.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+{
+ 'name': "yuthon base",
+ 'summary': "base",
+ 'description': """""",
+ 'author': 'zhou',
+ 'version': '0.1',
+ 'license': 'LGPL-3',
+ 'data': [
+ 'security/ir.model.access.csv',
+ ],
+ 'demo': [],
+ 'depends': ['hr', 'mail', 'base', 'survey'],
+ 'installable': True,
+ 'application': True,
+}
+
+
diff --git a/yuthon_base/models/__init__.py b/yuthon_base/models/__init__.py
new file mode 100644
index 000000000..c7116d815
--- /dev/null
+++ b/yuthon_base/models/__init__.py
@@ -0,0 +1 @@
+from . import inherit_ir_attachment
\ No newline at end of file
diff --git a/yuthon_base/models/inherit_ir_attachment.py b/yuthon_base/models/inherit_ir_attachment.py
new file mode 100644
index 000000000..8f33c534b
--- /dev/null
+++ b/yuthon_base/models/inherit_ir_attachment.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+from datetime import datetime, timedelta, time
+from email.policy import default
+
+from odoo import models, fields, api, _
+from odoo.exceptions import UserError, ValidationError
+import re
+from odoo.tools.misc import format_date
+
+
+class InheritIrAttachment(models.Model):
+ _inherit = 'ir.attachment'
+
+ public = fields.Boolean(string='公共文档', default=True)
+
+
diff --git a/yuthon_base/security/ir.model.access.csv b/yuthon_base/security/ir.model.access.csv
new file mode 100644
index 000000000..08145a00f
--- /dev/null
+++ b/yuthon_base/security/ir.model.access.csv
@@ -0,0 +1,2 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+
diff --git a/yuthon_trade/views/yuthon_trade_menu.xml b/yuthon_trade/views/yuthon_trade_menu.xml
index ba734d7fc..dca6d6bc5 100644
--- a/yuthon_trade/views/yuthon_trade_menu.xml
+++ b/yuthon_trade/views/yuthon_trade_menu.xml
@@ -23,11 +23,6 @@
parent="executive_manage_approval"
action="action_yuthon_trade_pay"
sequence="19"/>
-
+
\ No newline at end of file
From e6f11c1cca85911c99fe8527e93bf40543e3b9cd Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Fri, 23 May 2025 15:21:00 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
soong_workflow/views/menuitem.xml | 20 +++++++++----------
.../views/soong_workflow_record.xml | 5 +++--
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/soong_workflow/views/menuitem.xml b/soong_workflow/views/menuitem.xml
index f4b11c6ce..77fbe58e4 100644
--- a/soong_workflow/views/menuitem.xml
+++ b/soong_workflow/views/menuitem.xml
@@ -21,20 +21,20 @@
parent="menu_soong_workflow_root"
action="soong_workflow_other_record_action"
sequence="4"/>
-
-
+
+