From 4c5a6638fde7464547697b624c802c07ced9ff39 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Thu, 3 Oct 2024 14:17:17 +0700 Subject: [PATCH] [UPD] ssi_general_audit_worksheet_inherent_risk * Menambahkan KK Financial Statement Level Inherent Risk --- .../__manifest__.py | 8 + .../general_audit_ws_c16abd7.xml | 26 +++ .../general_audit_worksheet_type_data.xml | 9 +- .../ir_sequence/general_audit_ws_c16abd7.xml | 15 ++ .../general_audit_ws_c16abd7.xml | 180 ++++++++++++++++++ .../general_audit_ws_c16abd7.xml | 26 +++ .../models/__init__.py | 1 + .../models/general_audit_ws_c16abd7.py | 39 ++++ .../general_audit_ws_c16abd7.xml | 23 +++ .../security/ir_module_category_data.xml | 13 ++ .../ir_rule/general_audit_ws_a418d89.xml | 10 +- .../ir_rule/general_audit_ws_c16abd7.xml | 60 ++++++ .../res_group/general_audit_ws_c16abd7.xml | 61 ++++++ .../views/general_audit_ws_c16abd7_views.xml | 73 +++++++ 14 files changed, 539 insertions(+), 5 deletions(-) create mode 100644 ssi_general_audit_worksheet_inherent_risk/data/approval_template/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/data/ir_sequence/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/data/policy_template/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/data/sequence_template/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/models/general_audit_ws_c16abd7.py create mode 100644 ssi_general_audit_worksheet_inherent_risk/security/ir_model_access/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/security/res_group/general_audit_ws_c16abd7.xml create mode 100644 ssi_general_audit_worksheet_inherent_risk/views/general_audit_ws_c16abd7_views.xml diff --git a/ssi_general_audit_worksheet_inherent_risk/__manifest__.py b/ssi_general_audit_worksheet_inherent_risk/__manifest__.py index c1473d1..75e36dd 100644 --- a/ssi_general_audit_worksheet_inherent_risk/__manifest__.py +++ b/ssi_general_audit_worksheet_inherent_risk/__manifest__.py @@ -17,15 +17,23 @@ "security/res_group_data.xml", "security/ir.model.access.csv", "security/res_group/general_audit_ws_a418d89.xml", + "security/res_group/general_audit_ws_c16abd7.xml", "security/ir_model_access/general_audit_ws_a418d89.xml", + "security/ir_model_access/general_audit_ws_c16abd7.xml", "security/ir_rule/general_audit_ws_a418d89.xml", + "security/ir_rule/general_audit_ws_c16abd7.xml", "data/ir_sequence/general_audit_ws_a418d89.xml", + "data/ir_sequence/general_audit_ws_c16abd7.xml", "data/sequence_template/general_audit_ws_a418d89.xml", + "data/sequence_template/general_audit_ws_c16abd7.xml", "data/policy_template/general_audit_ws_a418d89.xml", + "data/policy_template/general_audit_ws_c16abd7.xml", "data/approval_template/general_audit_ws_a418d89.xml", + "data/approval_template/general_audit_ws_c16abd7.xml", "data/general_audit_worksheet_type_data.xml", "views/general_audit_inherent_risk_factor_views.xml", "views/general_audit_ws_a418d89_views.xml", + "views/general_audit_ws_c16abd7_views.xml", "views/general_audit_standard_detail_views.xml", "views/general_audit_views.xml", ], diff --git a/ssi_general_audit_worksheet_inherent_risk/data/approval_template/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/data/approval_template/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..f48fa78 --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/data/approval_template/general_audit_ws_c16abd7.xml @@ -0,0 +1,26 @@ + + + + + Standard + + + use_python + result = True + + + + + + use_group + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/data/general_audit_worksheet_type_data.xml b/ssi_general_audit_worksheet_inherent_risk/data/general_audit_worksheet_type_data.xml index 2353c7b..882dfe4 100644 --- a/ssi_general_audit_worksheet_inherent_risk/data/general_audit_worksheet_type_data.xml +++ b/ssi_general_audit_worksheet_inherent_risk/data/general_audit_worksheet_type_data.xml @@ -6,7 +6,14 @@ A418D89 - Inherent Risk + Account Level Inherent Risk + + + + + + C16ABD7 + Financial Statement Level Inherent Risk diff --git a/ssi_general_audit_worksheet_inherent_risk/data/ir_sequence/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/data/ir_sequence/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..89cde05 --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/data/ir_sequence/general_audit_ws_c16abd7.xml @@ -0,0 +1,15 @@ + + + + + Financial Statement Level Inherent Risks (c16abd7) + general_audit_ws_c16abd7 + 6 + WS-C16ABD7/%(range_year)s/ + + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/data/policy_template/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/data/policy_template/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..5f50f50 --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/data/policy_template/general_audit_ws_c16abd7.xml @@ -0,0 +1,180 @@ + + + + + Standard + + + + result=True + + + + + + + + + + use_group + + + + + + + + + + + + use_group + + + + + + + + + + + + use_group + + + + + + + + + + + + use_group + + + + + + + + + + + + + result = False +if env.user.id in document.active_approver_user_ids.ids: + result = True + + + + + + + + + + + result = False +if env.user.id in document.active_approver_user_ids.ids: + result = True + + + + + + + + + + use_group + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/data/sequence_template/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/data/sequence_template/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..13d841d --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/data/sequence_template/general_audit_ws_c16abd7.xml @@ -0,0 +1,26 @@ + + + + + Standard + + + / + + + use_python + result=True + + use_sequence + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/models/__init__.py b/ssi_general_audit_worksheet_inherent_risk/models/__init__.py index 8173c77..74b4f48 100644 --- a/ssi_general_audit_worksheet_inherent_risk/models/__init__.py +++ b/ssi_general_audit_worksheet_inherent_risk/models/__init__.py @@ -6,6 +6,7 @@ general_audit_inherent_risk_factor, general_audit_ws_a418d89, general_audit_ws_a418d89_detail, + general_audit_ws_c16abd7, general_audit_standard_detail, general_audit, ) diff --git a/ssi_general_audit_worksheet_inherent_risk/models/general_audit_ws_c16abd7.py b/ssi_general_audit_worksheet_inherent_risk/models/general_audit_ws_c16abd7.py new file mode 100644 index 0000000..f10623f --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/models/general_audit_ws_c16abd7.py @@ -0,0 +1,39 @@ +# 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 GeneralAuditWSc16abd7(models.Model): + _name = "general_audit_ws_c16abd7" + _description = "Financial Statement Level Inherent Risk (c16abd7)" + _inherit = [ + "general_audit_worksheet_mixin", + ] + _type_xml_id = "ssi_general_audit_worksheet_inherent_risk." "worksheet_type_c16abd7" + + risk_material_missstatement = fields.Selection( + string="Risk Material Misstatement", + selection=[ + ("low", "Low"), + ("medium", "Medium"), + ("high", "High"), + ], + readonly=True, + required=False, + states={ + "open": [ + ("readonly", False), + ], + }, + ) + auditor_respons = fields.Text( + string="Auditor Respons", + readonly=True, + states={ + "open": [ + ("readonly", False), + ], + }, + ) diff --git a/ssi_general_audit_worksheet_inherent_risk/security/ir_model_access/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/security/ir_model_access/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..aa93cfe --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/security/ir_model_access/general_audit_ws_c16abd7.xml @@ -0,0 +1,23 @@ + + + + + general_audit_ws_c16abd7 - all + + + + + + + + general_audit_ws_c16abd7 - user + + + + + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/security/ir_module_category_data.xml b/ssi_general_audit_worksheet_inherent_risk/security/ir_module_category_data.xml index 13ac02a..6fd5b73 100644 --- a/ssi_general_audit_worksheet_inherent_risk/security/ir_module_category_data.xml +++ b/ssi_general_audit_worksheet_inherent_risk/security/ir_module_category_data.xml @@ -16,5 +16,18 @@ + + Financial Statement Level Inherent Risks (c16abd7) + + + + + Financial Statement Level Inherent Risks (c16abd7) + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_a418d89.xml b/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_a418d89.xml index e68ff64..8891391 100644 --- a/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_a418d89.xml +++ b/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_a418d89.xml @@ -4,7 +4,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - Inherent Risk (a418d89) - Internal Users + Account Level Inherent Risk(a418d89) - Internal Users [ @@ -17,7 +17,9 @@ - Inherent Risk (a418d89) - Responsible to company data + Account Level Inherent Risk(a418d89) - Responsible to company data [('company_id','=',user.company_id.id)] @@ -30,7 +32,7 @@ Inherent Risk (a418d89) - Responsible to company and all child companies data + >Account Level Inherent Risk(a418d89) - Responsible to company and all child companies data - Inherent Risk (a418d89) - All + Account Level Inherent Risk(a418d89) - All [(1,'=',1)] diff --git a/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..68e7937 --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/security/ir_rule/general_audit_ws_c16abd7.xml @@ -0,0 +1,60 @@ + + + + + Financial Statement Level Inherent Risk (c16abd7) - Internal Users + + + [ + ('user_id','=',user.id), + ] + + + + + + + + Financial Statement Level Inherent Risk (c16abd7) - Responsible to company data + + + [('company_id','=',user.company_id.id)] + + + + + + + + Financial Statement Level Inherent Risk (c16abd7) - Responsible to company and all child companies data + + + [('company_id','in',user.company_ids.ids)] + + + + + + + + Financial Statement Level Inherent Risk (c16abd7) - All + + + [(1,'=',1)] + + + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/security/res_group/general_audit_ws_c16abd7.xml b/ssi_general_audit_worksheet_inherent_risk/security/res_group/general_audit_ws_c16abd7.xml new file mode 100644 index 0000000..921795d --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/security/res_group/general_audit_ws_c16abd7.xml @@ -0,0 +1,61 @@ + + + + + + Viewer + + + + + User + + + + + + Validator + + + + + + + + Company + + + + + Company and All Child Companies + + + + + + All + + + + + diff --git a/ssi_general_audit_worksheet_inherent_risk/views/general_audit_ws_c16abd7_views.xml b/ssi_general_audit_worksheet_inherent_risk/views/general_audit_ws_c16abd7_views.xml new file mode 100644 index 0000000..2847b4a --- /dev/null +++ b/ssi_general_audit_worksheet_inherent_risk/views/general_audit_ws_c16abd7_views.xml @@ -0,0 +1,73 @@ + + + + + + general_audit_ws_c16abd7 form + general_audit_ws_c16abd7 + + primary + + + + + + + general_audit_ws_c16abd7 tree + general_audit_ws_c16abd7 + primary + + + + + + + + + general_audit_ws_c16abd7 form + general_audit_ws_c16abd7 + primary + + + + + + + + + + + + + + + + + Financial Statement Level Inherent Risks + ir.actions.act_window + general_audit_ws_c16abd7 + tree,form + + + + + +