Skip to content

Commit

Permalink
[UPD] ssi_general_audit_worksheet_inherent_risk
Browse files Browse the repository at this point in the history
* Menambahkan KK Financial Statement Level Inherent Risk
  • Loading branch information
andhit-r committed Oct 3, 2024
1 parent cb3fc5b commit 4c5a663
Show file tree
Hide file tree
Showing 14 changed files with 539 additions and 5 deletions.
8 changes: 8 additions & 0 deletions ssi_general_audit_worksheet_inherent_risk/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="approval_template_general_audit_ws_c16abd7" model="approval.template">
<field name="name">Standard</field>
<field name="model_id" ref="model_general_audit_ws_c16abd7" />
<field name="sequence" eval="100" />
<field name="computation_method">use_python</field>
<field name="python_code">result = True</field>
<field name="validate_sequence" eval="1" />
</record>

<record
id="approval_template_detail_general_audit_ws_c16abd7"
model="approval.template_detail"
>
<field name="template_id" ref="approval_template_general_audit_ws_c16abd7" />
<field name="approver_selection_method">use_group</field>
<field
name="approver_group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_validator_group')])]"
/>
</record>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
<data>
<record id="worksheet_type_a418d89" model="general_audit_worksheet_type">
<field name="code">A418D89</field>
<field name="name">Inherent Risk</field>
<field name="name">Account Level Inherent Risk</field>
<field name="sequence" eval="14000" />
<field name="category_id" ref="ssi_general_audit.worksheet_type_category_ra" />
</record>

<record id="worksheet_type_c16abd7" model="general_audit_worksheet_type">
<field name="code">C16ABD7</field>
<field name="name">Financial Statement Level Inherent Risk</field>
<field name="sequence" eval="14000" />
<field name="category_id" ref="ssi_general_audit.worksheet_type_category_ra" />
</record>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="sequence_general_audit_ws_c16abd7" model="ir.sequence">
<field name="name">Financial Statement Level Inherent Risks (c16abd7)</field>
<field name="code">general_audit_ws_c16abd7</field>
<field name="padding">6</field>
<field name="prefix">WS-C16ABD7/%(range_year)s/</field>
<field eval="1" name="number_next" />
<field eval="1" name="number_increment" />
<field name="use_date_range" eval="1" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="policy_template_general_audit_ws_c16abd7" model="policy.template">
<field name="name">Standard</field>
<field name="model_id" ref="model_general_audit_ws_c16abd7" />
<field
name="state_field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','state')]"
/>
<field name="sequence" eval="100" />
<field name="python_code">result=True</field>
</record>

<!-- Start -->
<record
id="policy_template_general_audit_ws_c16abd7_open"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','open_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','=','draft')]"
/>
<field name="restrict_user" eval="1" />
<field name="computation_method">use_group</field>
<field
name="group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_user_group')])]"
/>
<field name="restrict_additional" eval="0" />
</record>

<!-- Confirm -->
<record
id="policy_template_general_audit_ws_c16abd7_confirm"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','confirm_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','=','open')]"
/>
<field name="restrict_user" eval="1" />
<field name="computation_method">use_group</field>
<field
name="group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_user_group')])]"
/>
<field name="restrict_additional" eval="0" />
</record>

<!-- Cancel -->
<record
id="policy_template_general_audit_ws_c16abd7_cancel"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','cancel_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','in',['draft','open','done'])]"
/>
<field name="restrict_user" eval="1" />
<field name="computation_method">use_group</field>
<field
name="group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_validator_group')])]"
/>
<field name="restrict_additional" eval="0" />
</record>

<!-- Restart -->
<record
id="policy_template_general_audit_ws_c16abd7_restart"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','restart_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','in',['cancel','reject'])]"
/>
<field name="restrict_user" eval="1" />
<field name="computation_method">use_group</field>
<field
name="group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_validator_group')])]"
/>
<field name="restrict_additional" eval="0" />
</record>

<!-- Reject -->
<record
id="policy_template_general_audit_ws_c16abd7_reject"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','reject_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','=','confirm')]"
/>
<field name="restrict_user" eval="0" />
<field name="restrict_additional" eval="1" />
<field name="additional_python_code">result = False
if env.user.id in document.active_approver_user_ids.ids:
result = True</field>
</record>

<!-- Approve -->
<record
id="policy_template_general_audit_ws_c16abd7_approve"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','approve_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','=','confirm')]"
/>
<field name="restrict_user" eval="0" />
<field name="restrict_additional" eval="1" />
<field name="additional_python_code">result = False
if env.user.id in document.active_approver_user_ids.ids:
result = True</field>
</record>

<!-- Manual Number -->
<record
id="policy_template_general_audit_ws_c16abd7_manual_number"
model="policy.template_detail"
>
<field name="template_id" ref="policy_template_general_audit_ws_c16abd7" />
<field
name="field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','manual_number_ok')]"
/>
<field name="restrict_state" eval="1" />
<field
name="state_ids"
search="[('field_id.model_id.model','=','general_audit_ws_c16abd7'),('value','=','draft')]"
/>
<field name="restrict_user" eval="1" />
<field name="computation_method">use_group</field>
<field
name="group_ids"
eval="[(6,0,[ref('general_audit_ws_c16abd7_validator_group')])]"
/>
<field name="restrict_additional" eval="0" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="sequence_template_general_audit_ws_c16abd7" model="sequence.template">
<field name="name">Standard</field>
<field name="model_id" ref="model_general_audit_ws_c16abd7" />
<field name="sequence" eval="100" />
<field name="initial_string">/</field>
<field
name="sequence_field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','name')]"
/>
<field
name="date_field_id"
search="[('model_id.model','=','general_audit_ws_c16abd7'),('name','=','date_start')]"
/>
<field name="computation_method">use_python</field>
<field name="python_code">result=True</field>
<field name="sequence_id" ref="sequence_general_audit_ws_c16abd7" />
<field name="sequence_selection_method">use_sequence</field>
<field name="add_custom_prefix" eval="0" />
<field name="add_custom_suffix" eval="0" />
</record>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Original file line number Diff line number Diff line change
@@ -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),
],
},
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 OpenSynergy Indonesia
Copyright 2022 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="general_audit_ws_c16abd7_all_access" model="ir.model.access">
<field name="name">general_audit_ws_c16abd7 - all</field>
<field name="model_id" ref="model_general_audit_ws_c16abd7" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
<record id="general_audit_ws_c16abd7_user_access" model="ir.model.access">
<field name="name">general_audit_ws_c16abd7 - user</field>
<field name="model_id" ref="model_general_audit_ws_c16abd7" />
<field name="group_id" ref="general_audit_ws_c16abd7_user_group" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="1" />
<field name="perm_write" eval="1" />
<field name="perm_unlink" eval="1" />
</record>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,18 @@
<field name="parent_id" ref="ssi_accountant.accountant_data_module_category" />
</record>

<record
id="general_audit_ws_c16abd7_workflow_module_category"
model="ir.module.category"
>
<field name="name">Financial Statement Level Inherent Risks (c16abd7)</field>
<field name="parent_id" ref="ssi_accountant.accountant_workflow_module_category" />
</record>

<record id="general_audit_ws_c16abd7_data_module_category" model="ir.module.category">
<field name="name">Financial Statement Level Inherent Risks (c16abd7)</field>
<field name="parent_id" ref="ssi_accountant.accountant_data_module_category" />
</record>


</odoo>
Loading

0 comments on commit 4c5a663

Please sign in to comment.