diff --git a/ssi_general_audit_worksheet_understanding_entity/README.rst b/ssi_general_audit_worksheet_understanding_entity/README.rst new file mode 100644 index 0000000..8a2677a --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +=================================================================== +General Audit Worksheet - Understanding Entity and It's Environment +=================================================================== + + +Installation +============ + +To install this module, you need to: + +1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-general-audit +2. Add the path to this repository in your configuration (addons-path) +3. Update the module list (Must be on developer mode) +4. Go to menu *Apps -> Apps -> Main Apps* +5. Search For *General Audit Worksheet - Understanding Entity and It's Environment* +6. Install the module + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smash it by providing detailed and welcomed feedback. + + +Credits +======= + +Contributors +------------ + +* Andhitia Rama + +Maintainer +---------- + +.. image:: https://simetri-sinergi.id/logo.png + :alt: PT. Simetri Sinergi Indonesia + :target: https://simetri-sinergi.id + +This module is maintained by the PT. Simetri Sinergi Indonesia. diff --git a/ssi_general_audit_worksheet_understanding_entity/__init__.py b/ssi_general_audit_worksheet_understanding_entity/__init__.py new file mode 100644 index 0000000..8d7ff5a --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/__init__.py @@ -0,0 +1,7 @@ +# 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 . import ( + models, +) diff --git a/ssi_general_audit_worksheet_understanding_entity/__manifest__.py b/ssi_general_audit_worksheet_understanding_entity/__manifest__.py new file mode 100644 index 0000000..f9c3855 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/__manifest__.py @@ -0,0 +1,28 @@ +# 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). +# pylint: disable=locally-disabled, manifest-required-author +{ + "name": "General Audit Worksheet - Understanding Entity and It's Environment", + "version": "14.0.1.0.0", + "website": "https://simetri-sinergi.id", + "author": "OpenSynergy Indonesia, PT. Simetri Sinergi Indonesia", + "license": "AGPL-3", + "installable": True, + "depends": [ + "ssi_general_audit", + ], + "data": [ + "security/ir_module_category_data.xml", + "security/res_group/general_audit_ws_e78a3c6.xml", + "security/ir_model_access/general_audit_ws_e78a3c6.xml", + "security/ir_rule/general_audit_ws_e78a3c6.xml", + "data/ir_sequence/general_audit_ws_e78a3c6.xml", + "data/sequence_template/general_audit_ws_e78a3c6.xml", + "data/policy_template/general_audit_ws_e78a3c6.xml", + "data/approval_template/general_audit_ws_e78a3c6.xml", + "data/general_audit_worksheet_type_data.xml", + "views/general_audit_ws_e78a3c6_views.xml", + ], + "demo": [], +} diff --git a/ssi_general_audit_worksheet_understanding_entity/data/approval_template/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/data/approval_template/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..7cfbc21 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/data/approval_template/general_audit_ws_e78a3c6.xml @@ -0,0 +1,26 @@ + + + + + Standard + + + use_python + result = True + + + + + + use_group + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/data/general_audit_worksheet_type_data.xml b/ssi_general_audit_worksheet_understanding_entity/data/general_audit_worksheet_type_data.xml new file mode 100644 index 0000000..f778452 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/data/general_audit_worksheet_type_data.xml @@ -0,0 +1,14 @@ + + + + + + E78A3C6 + Structure Organization and Responsibilities + + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/data/ir_sequence/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/data/ir_sequence/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..afab8c5 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/data/ir_sequence/general_audit_ws_e78a3c6.xml @@ -0,0 +1,15 @@ + + + + + Structure Organization and Responsibilities (e78a3c6) + general_audit_ws_e78a3c6 + 6 + WS-E78A3C6/%(range_year)s/ + + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/data/policy_template/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/data/policy_template/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..ad406f4 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/data/policy_template/general_audit_ws_e78a3c6.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_understanding_entity/data/sequence_template/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/data/sequence_template/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..8db5a92 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/data/sequence_template/general_audit_ws_e78a3c6.xml @@ -0,0 +1,26 @@ + + + + + Standard + + + / + + + use_python + result=True + + use_sequence + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/models/__init__.py b/ssi_general_audit_worksheet_understanding_entity/models/__init__.py new file mode 100644 index 0000000..10c0874 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/models/__init__.py @@ -0,0 +1,8 @@ +# 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 . import ( + general_audit_ws_e78a3c6, + general_audit_ws_e78a3c6_organization_structure, +) diff --git a/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6.py b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6.py new file mode 100644 index 0000000..5f97a7b --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6.py @@ -0,0 +1,22 @@ +# 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 GeneralAuditWSe78a3c6(models.Model): + _name = "general_audit_ws_e78a3c6" + _description = "Structure Organization and Responsibilities (e78a3c6)" + _inherit = [ + "general_audit_worksheet_mixin", + ] + _type_xml_id = ( + "ssi_general_audit_worksheet_understanding_entity." "worksheet_type_e78a3c6" + ) + + organtization_structure_ids = fields.One2many( + string="Organization Structures", + comodel_name="general_audit_ws_e78a3c6.organization_structure", + inverse_name="worksheet_id", + ) diff --git a/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6_organization_structure.py b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6_organization_structure.py new file mode 100644 index 0000000..b3606da --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6_organization_structure.py @@ -0,0 +1,31 @@ +# 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 GeneralAuditWSe78a3c6OrganizationStructure(models.Model): + _name = "general_audit_ws_e78a3c6.organization_structure" + _description = "Worksheet e78a3c6 - Organization Structure" + _order = "worksheet_id, sequence, id" + + worksheet_id = fields.Many2one( + string="# Worksheet", + comodel_name="general_audit_ws_e78a3c6", + required=True, + ondelete="cascade", + ) + sequence = fields.Integer( + string="Sequence", + default=10, + required=True, + ) + name = fields.Char( + string="Unit of Organization", + required=True, + ) + responsibility = fields.Char( + string="Responsiblity", + required=True, + ) 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 new file mode 100644 index 0000000..96d209f --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +analytic_procedure_conclusion_category_employee,analytic_procedure_conclusion_category - user,model_analytic_procedure_conclusion_category,analytic_procedure_conclusion_category_group,1,1,1,1 +analytic_procedure_conclusion_category_all,analytic_procedure_conclusion_category - all,model_analytic_procedure_conclusion_category,,1,0,0,0 diff --git a/ssi_general_audit_worksheet_understanding_entity/security/ir_model_access/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/security/ir_model_access/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..e08a48d --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/ir_model_access/general_audit_ws_e78a3c6.xml @@ -0,0 +1,53 @@ + + + + + general_audit_ws_e78a3c6 - all + + + + + + + + general_audit_ws_e78a3c6 - user + + + + + + + + + + general_audit_ws_e78a3c6.organization_structure - all + + + + + + + + general_audit_ws_e78a3c6.organization_structure - user + + + + + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/security/ir_module_category_data.xml b/ssi_general_audit_worksheet_understanding_entity/security/ir_module_category_data.xml new file mode 100644 index 0000000..a376686 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/ir_module_category_data.xml @@ -0,0 +1,20 @@ + + + + + + Structure Organization and Responsibilities (e78a3c6) + + + + + Structure Organization and Responsibilities (e78a3c6) + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/security/ir_rule/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/security/ir_rule/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..9ceb675 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/ir_rule/general_audit_ws_e78a3c6.xml @@ -0,0 +1,62 @@ + + + + + Structure Organization and Responsibilities (e78a3c6) - Internal Users + + + [ + ('user_id','=',user.id), + ] + + + + + + + + Structure Organization and Responsibilities (e78a3c6) - Responsible to company data + + + [('company_id','=',user.company_id.id)] + + + + + + + + Structure Organization and Responsibilities (e78a3c6) - Responsible to company and all child companies data + + + [('company_id','in',user.company_ids.ids)] + + + + + + + + Structure Organization and Responsibilities (e78a3c6) - All + + + [(1,'=',1)] + + + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/security/res_group/general_audit_ws_e78a3c6.xml b/ssi_general_audit_worksheet_understanding_entity/security/res_group/general_audit_ws_e78a3c6.xml new file mode 100644 index 0000000..76e6e3a --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/res_group/general_audit_ws_e78a3c6.xml @@ -0,0 +1,61 @@ + + + + + + Viewer + + + + + User + + + + + + Validator + + + + + + + + Company + + + + + Company and All Child Companies + + + + + + All + + + + + 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 new file mode 100644 index 0000000..f8595bc --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/security/res_group_data.xml @@ -0,0 +1,18 @@ + + + + + Analytic Procedure Conclusion category + + + + + diff --git a/ssi_general_audit_worksheet_understanding_entity/static/description/icon.png b/ssi_general_audit_worksheet_understanding_entity/static/description/icon.png new file mode 100644 index 0000000..4c8e112 Binary files /dev/null and b/ssi_general_audit_worksheet_understanding_entity/static/description/icon.png differ diff --git a/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_e78a3c6_views.xml b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_e78a3c6_views.xml new file mode 100644 index 0000000..27e0013 --- /dev/null +++ b/ssi_general_audit_worksheet_understanding_entity/views/general_audit_ws_e78a3c6_views.xml @@ -0,0 +1,76 @@ + + + + + + general_audit_ws_e78a3c6 form + general_audit_ws_e78a3c6 + + primary + + + + + + + general_audit_ws_e78a3c6 tree + general_audit_ws_e78a3c6 + primary + + + + + + + + + general_audit_ws_e78a3c6 form + general_audit_ws_e78a3c6 + primary + + + + + + + + + + + + + + + + + + + + Structure Organization and Responsibilities + ir.actions.act_window + general_audit_ws_e78a3c6 + tree,form + + + + + +