@@ -43,16 +41,15 @@
-
-
-
-
+
+
-
-
-
-
+
+
+
+
+
@@ -71,11 +68,14 @@
issue.library
-
-
+
+
-
+
+
+
+
diff --git a/yuthon_notice/views/yuthon_ntice_views.xml b/yuthon_notice/views/yuthon_ntice_views.xml
index ac4ee5edf..e46dcb3c5 100644
--- a/yuthon_notice/views/yuthon_ntice_views.xml
+++ b/yuthon_notice/views/yuthon_ntice_views.xml
@@ -155,7 +155,7 @@
-
+
diff --git a/yuthon_official/models/yuthon_offficial_incoming_party.py b/yuthon_official/models/yuthon_offficial_incoming_party.py
index 8c2f646c9..fe4f92e1a 100644
--- a/yuthon_official/models/yuthon_offficial_incoming_party.py
+++ b/yuthon_official/models/yuthon_offficial_incoming_party.py
@@ -32,3 +32,4 @@ class YuthonOfficialIncomingParty(models.Model):
string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
diff --git a/yuthon_official/models/yuthon_official.py b/yuthon_official/models/yuthon_official.py
index c14814907..1e88867f6 100644
--- a/yuthon_official/models/yuthon_official.py
+++ b/yuthon_official/models/yuthon_official.py
@@ -34,6 +34,7 @@ class YuthonOfficial(models.Model):
statu = fields.Selection([('drft', '草稿'), ('going', '审批中'), ('cancel', '已取消'), ('no', '未发布'), ('done', '已发布')], string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
def cancel_official(self):
self.write({'statu': '已取消'})
@@ -51,3 +52,6 @@ class YuthonOfficial(models.Model):
partner_ids = self.sudo().env['res.users'].search([('id', 'in', publish_user_list)]).mapped('partner_id').ids
self.sudo().with_context(lang=self.env.lang)._message_auto_subscribe_notify(partner_ids, 'yuthon_official.message_yuthon_official_confirm_users_data')
self.write({"statu": 'done'})
+
+ def supervising_official(self):
+ pass
diff --git a/yuthon_official/models/yuthon_official_incoming_labor.py b/yuthon_official/models/yuthon_official_incoming_labor.py
index 246dd3233..3f4ffd82c 100644
--- a/yuthon_official/models/yuthon_official_incoming_labor.py
+++ b/yuthon_official/models/yuthon_official_incoming_labor.py
@@ -32,3 +32,4 @@ class YuthonOfficialIncomingLabor(models.Model):
string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
diff --git a/yuthon_official/models/yuthon_official_incoming_normal.py b/yuthon_official/models/yuthon_official_incoming_normal.py
index 4758e2366..d033a7d43 100644
--- a/yuthon_official/models/yuthon_official_incoming_normal.py
+++ b/yuthon_official/models/yuthon_official_incoming_normal.py
@@ -31,3 +31,4 @@ class YuthonOfficialIncomingNormal(models.Model):
string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
diff --git a/yuthon_official/models/yuthon_official_labor.py b/yuthon_official/models/yuthon_official_labor.py
index 47405976c..009b77f97 100644
--- a/yuthon_official/models/yuthon_official_labor.py
+++ b/yuthon_official/models/yuthon_official_labor.py
@@ -32,3 +32,4 @@ class YuthonOfficialLabor(models.Model):
string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
diff --git a/yuthon_official/models/yuthon_official_party.py b/yuthon_official/models/yuthon_official_party.py
index 403e46d7a..ae3c388af 100644
--- a/yuthon_official/models/yuthon_official_party.py
+++ b/yuthon_official/models/yuthon_official_party.py
@@ -32,3 +32,4 @@ class YuthonOfficialParty(models.Model):
string="状态", default='drft')
deadline = fields.Date(string="办理期限")
red_suit = fields.Char(string="套红")
+ official_documents_ids = fields.Many2many('documents.document', string="公文相关文件")
diff --git a/yuthon_official/views/official_menus.xml b/yuthon_official/views/official_menus.xml
index e14a1fd0a..88e7f5b95 100644
--- a/yuthon_official/views/official_menus.xml
+++ b/yuthon_official/views/official_menus.xml
@@ -12,6 +12,38 @@
name="我的公文"
sequence="2"/>
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/yuthon_official/views/yuthon_official_incoming_labor_views.xml b/yuthon_official/views/yuthon_official_incoming_labor_views.xml
index cdc51c4ad..fac6b2fdc 100644
--- a/yuthon_official/views/yuthon_official_incoming_labor_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_labor_views.xml
@@ -43,6 +43,11 @@
+
+
+
+
+
diff --git a/yuthon_official/views/yuthon_official_incoming_normal_views.xml b/yuthon_official/views/yuthon_official_incoming_normal_views.xml
index ada646e22..3e4797b4f 100644
--- a/yuthon_official/views/yuthon_official_incoming_normal_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_normal_views.xml
@@ -43,6 +43,11 @@
+
+
+
+
+
diff --git a/yuthon_official/views/yuthon_official_incoming_party_views.xml b/yuthon_official/views/yuthon_official_incoming_party_views.xml
index 8700ede4d..7fd22f76e 100644
--- a/yuthon_official/views/yuthon_official_incoming_party_views.xml
+++ b/yuthon_official/views/yuthon_official_incoming_party_views.xml
@@ -43,6 +43,11 @@
+
+
+
+
+
diff --git a/yuthon_official/views/yuthon_official_labor_views.xml b/yuthon_official/views/yuthon_official_labor_views.xml
index 4dbf464eb..cdecf769c 100644
--- a/yuthon_official/views/yuthon_official_labor_views.xml
+++ b/yuthon_official/views/yuthon_official_labor_views.xml
@@ -35,6 +35,11 @@
+
+
+
+
+
@@ -109,6 +114,11 @@
+
+
+
+
+
diff --git a/yuthon_official/views/yuthon_official_party_views.xml b/yuthon_official/views/yuthon_official_party_views.xml
index 090df5e70..eda50899b 100644
--- a/yuthon_official/views/yuthon_official_party_views.xml
+++ b/yuthon_official/views/yuthon_official_party_views.xml
@@ -43,6 +43,11 @@
+
+
+
+
+
@@ -120,6 +125,11 @@
+
+
+
+
+
diff --git a/yuthon_official/views/yuthon_official_views.xml b/yuthon_official/views/yuthon_official_views.xml
index fc8ebb125..dfbaf0615 100644
--- a/yuthon_official/views/yuthon_official_views.xml
+++ b/yuthon_official/views/yuthon_official_views.xml
@@ -24,6 +24,8 @@
class="btn-primary"/>
+
@@ -44,6 +46,11 @@
+
+
+
+
+
@@ -127,6 +134,11 @@
+
+
+
+
+