diff --git a/ssi_general_audit_worksheet_understanding_entity/__manifest__.py b/ssi_general_audit_worksheet_understanding_entity/__manifest__.py
index edb0943..a25a473 100644
--- a/ssi_general_audit_worksheet_understanding_entity/__manifest__.py
+++ b/ssi_general_audit_worksheet_understanding_entity/__manifest__.py
@@ -84,6 +84,7 @@
"views/general_audit_fraud_factor_views.xml",
"views/general_audit_fraud_factor_indicator_views.xml",
"views/general_audit_expert_type_views.xml",
+ "views/general_audit_fraud_other_report_views.xml",
"views/general_audit_ws_e78a3c6_views.xml",
"views/general_audit_ws_a13a30e_views.xml",
"views/general_audit_ws_bdcdfc5_views.xml",
diff --git a/ssi_general_audit_worksheet_understanding_entity/models/__init__.py b/ssi_general_audit_worksheet_understanding_entity/models/__init__.py
index 3c14597..350ff9a 100644
--- a/ssi_general_audit_worksheet_understanding_entity/models/__init__.py
+++ b/ssi_general_audit_worksheet_understanding_entity/models/__init__.py
@@ -13,6 +13,7 @@
general_audit_fraud_factor_category,
general_audit_fraud_factor,
general_audit_fraud_factor_indicator,
+ general_audit_other_report,
general_audit_ws_e78a3c6,
general_audit_ws_e78a3c6_organization_structure,
general_audit_ws_a13a30e,
diff --git a/ssi_general_audit_worksheet_understanding_entity/models/general_audit.py b/ssi_general_audit_worksheet_understanding_entity/models/general_audit.py
index 9e5c1ac..3540db2 100644
--- a/ssi_general_audit_worksheet_understanding_entity/models/general_audit.py
+++ b/ssi_general_audit_worksheet_understanding_entity/models/general_audit.py
@@ -19,3 +19,10 @@ class GeneralAudit(models.Model):
column1="general_audit_id",
column2="business_process_id",
)
+ other_report_ids = fields.Many2many(
+ string="Other Reports",
+ comodel_name="general_audit_other_report",
+ relation="rel_general_audit_2_other_report",
+ column1="general_audit_id",
+ column2="other_report_id",
+ )
diff --git a/ssi_general_audit_worksheet_understanding_entity/models/general_audit_other_report.py b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_other_report.py
new file mode 100644
index 0000000..de3a154
--- /dev/null
+++ b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_other_report.py
@@ -0,0 +1,19 @@
+# Copyright 2022 OpenSynergy Indonesia
+# Copyright 2022 PT. Simetri Sinergi Indonesia
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0-standalone.html).
+
+from odoo import fields, models
+
+
+class GeneralAuditOtherReport(models.Model):
+ _name = "general_audit_other_report"
+ _inherit = [
+ "mixin.master_data",
+ ]
+ _description = "General Audit Other Report"
+ _order = "sequence, id"
+
+ sequence = fields.Integer(
+ string="Sequence",
+ default=10,
+ )
diff --git a/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_ae11f7e.py b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_ae11f7e.py
index 411b7a9..bf4dd34 100644
--- a/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_ae11f7e.py
+++ b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_ae11f7e.py
@@ -26,6 +26,17 @@ class GeneralAuditWSae11f7e(models.Model):
],
},
)
+ other_report_ids = fields.Many2many(
+ string="Other Reports",
+ related="general_audit_id.other_report_ids",
+ inverse="_inverse_other_report_ids",
+ readonly=True,
+ states={
+ "open": [
+ ("readonly", False),
+ ],
+ },
+ )
expert_ids = fields.One2many(
string="Experts",
comodel_name="general_audit_ws_ae11f7e.expert",
@@ -78,3 +89,11 @@ def _inverse_business_cycle_ids(self):
"business_cycle_ids": [(6, 0, self.business_cycle_ids.ids)],
}
)
+
+ def _inverse_other_report_ids(self):
+ for record in self:
+ record.general_audit_id.write(
+ {
+ "other_report_ids": [(6, 0, self.other_report_ids.ids)],
+ }
+ )
diff --git a/ssi_general_audit_worksheet_understanding_entity/security/ir.model.access.csv b/ssi_general_audit_worksheet_understanding_entity/security/ir.model.access.csv
index baba83a..a1db85d 100644
--- a/ssi_general_audit_worksheet_understanding_entity/security/ir.model.access.csv
+++ b/ssi_general_audit_worksheet_understanding_entity/security/ir.model.access.csv
@@ -19,3 +19,5 @@ client_general_audit_business_document_configurator,general_audit_business_docum
client_general_audit_business_document_all,general_audit_business_document - all,model_general_audit_business_document,,1,0,0,0
client_general_audit_expert_type_configurator,general_audit_expert_type - configurator,model_general_audit_expert_type,general_audit_expert_type_group,1,1,1,1
client_general_audit_expert_type_all,general_audit_expert_type - all,model_general_audit_expert_type,,1,0,0,0
+client_general_audit_other_report_configurator,general_audit_other_report - configurator,model_general_audit_other_report,general_audit_other_report_group,1,1,1,1
+client_general_audit_other_report_all,general_audit_other_report - all,model_general_audit_other_report,,1,0,0,0
diff --git a/ssi_general_audit_worksheet_understanding_entity/security/res_group_data.xml b/ssi_general_audit_worksheet_understanding_entity/security/res_group_data.xml
index 9fd9388..01ff259 100644
--- a/ssi_general_audit_worksheet_understanding_entity/security/res_group_data.xml
+++ b/ssi_general_audit_worksheet_understanding_entity/security/res_group_data.xml
@@ -123,4 +123,16 @@
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
+
+
+ Other Report
+
+
+
diff --git a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_fraud_other_report_views.xml b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_fraud_other_report_views.xml
new file mode 100644
index 0000000..0244534
--- /dev/null
+++ b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_fraud_other_report_views.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ general_audit_other_report - search
+ general_audit_other_report
+
+ primary
+
+
+
+
+
+
+ general_audit_other_report - tree
+ general_audit_other_report
+
+ primary
+
+
+
+
+
+
+
+
+
+
+ general_audit_other_report - form
+ general_audit_other_report
+
+ primary
+
+
+
+
+
+
+
+
+
+
+ Other Reports
+ ir.actions.act_window
+ general_audit_other_report
+ tree,form
+
+
+
+
+
diff --git a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_views.xml b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_views.xml
index f2ad4ff..b46ee4c 100644
--- a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_views.xml
+++ b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_views.xml
@@ -15,6 +15,7 @@
+
diff --git a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_ae11f7e_views.xml b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_ae11f7e_views.xml
index c0bc989..c9c57e4 100644
--- a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_ae11f7e_views.xml
+++ b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_ae11f7e_views.xml
@@ -145,8 +145,14 @@
-
-
+
+
+
+
+