-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by andhit-r
- Loading branch information
Showing
27 changed files
with
1,059 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
ssi_general_audit_worksheet_control_risk/data/approval_template/general_audit_ws_ba9b2f0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ba9b2f0" model="approval.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_ba9b2f0" /> | ||
<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_ba9b2f0" | ||
model="approval.template_detail" | ||
> | ||
<field name="template_id" ref="approval_template_general_audit_ws_ba9b2f0" /> | ||
<field name="approver_selection_method">use_group</field> | ||
<field | ||
name="approver_group_ids" | ||
eval="[(6,0,[ref('general_audit_ws_ba9b2f0_validator_group')])]" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
ssi_general_audit_worksheet_control_risk/data/ir_sequence/general_audit_ws_ba9b2f0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ba9b2f0" model="ir.sequence"> | ||
<field name="name">Standard Account Internal Control (ba9b2f0)</field> | ||
<field name="code">general_audit_ws_ba9b2f0</field> | ||
<field name="padding">6</field> | ||
<field name="prefix">WS-BA9B2F0/%(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> |
180 changes: 180 additions & 0 deletions
180
ssi_general_audit_worksheet_control_risk/data/policy_template/general_audit_ws_ba9b2f0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ba9b2f0" model="policy.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="state_field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','state')]" | ||
/> | ||
<field name="sequence" eval="100" /> | ||
<field name="python_code">result=True</field> | ||
</record> | ||
|
||
<!-- Start --> | ||
<record | ||
id="policy_template_general_audit_ws_ba9b2f0_open" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','open_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_user_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Confirm --> | ||
<record | ||
id="policy_template_general_audit_ws_ba9b2f0_confirm" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','confirm_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_user_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Cancel --> | ||
<record | ||
id="policy_template_general_audit_ws_ba9b2f0_cancel" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','cancel_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Restart --> | ||
<record | ||
id="policy_template_general_audit_ws_ba9b2f0_restart" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','restart_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Reject --> | ||
<record | ||
id="policy_template_general_audit_ws_ba9b2f0_reject" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','reject_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_approve" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','approve_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_manual_number" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_ba9b2f0" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','manual_number_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
</odoo> |
26 changes: 26 additions & 0 deletions
26
ssi_general_audit_worksheet_control_risk/data/sequence_template/general_audit_ws_ba9b2f0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ba9b2f0" model="sequence.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_ba9b2f0" /> | ||
<field name="sequence" eval="100" /> | ||
<field name="initial_string">/</field> | ||
<field | ||
name="sequence_field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('name','=','name')]" | ||
/> | ||
<field | ||
name="date_field_id" | ||
search="[('model_id.model','=','general_audit_ws_ba9b2f0'),('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_ba9b2f0" /> | ||
<field name="sequence_selection_method">use_sequence</field> | ||
<field name="add_custom_prefix" eval="0" /> | ||
<field name="add_custom_suffix" eval="0" /> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...general_audit_worksheet_control_risk/models/general_audit_account_key_internal_control.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 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 GeneralAuditAccountKeyInternalControl(models.Model): | ||
_name = "general_audit_account_key_internal_control" | ||
_inherit = [ | ||
"mixin.master_data", | ||
] | ||
_description = "General Audit - Standard Account Key Internal Control" | ||
_order = "sequence, id" | ||
|
||
sequence = fields.Integer( | ||
string="Sequence", | ||
required=True, | ||
default=10, | ||
) | ||
account_type_id = fields.Many2one( | ||
string="Standard Account", | ||
comodel_name="client_account_type", | ||
required=True, | ||
ondelete="restrict", | ||
) | ||
control_activity_id = fields.Many2one( | ||
string="Control Activity", | ||
comodel_name="general_audit_control_activity", | ||
required=True, | ||
ondelete="restrict", | ||
) | ||
assersion_type_id = fields.Many2one( | ||
string="Assersion Type", | ||
comodel_name="general_audit_assersion_type", | ||
required=True, | ||
ondelete="restrict", | ||
) |
Oops, something went wrong.