-
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.
[ADD] ssi_general_audit_worksheet_understanding_entity
- Loading branch information
Showing
19 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
ssi_general_audit_worksheet_understanding_entity/README.rst
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,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 | ||
<https://github.com/open-synergy/ssi-general-audit/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 <[email protected]> | ||
|
||
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. |
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,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, | ||
) |
28 changes: 28 additions & 0 deletions
28
ssi_general_audit_worksheet_understanding_entity/__manifest__.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,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": [], | ||
} |
26 changes: 26 additions & 0 deletions
26
..._audit_worksheet_understanding_entity/data/approval_template/general_audit_ws_e78a3c6.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_e78a3c6" model="approval.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_e78a3c6" /> | ||
<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_e78a3c6" | ||
model="approval.template_detail" | ||
> | ||
<field name="template_id" ref="approval_template_general_audit_ws_e78a3c6" /> | ||
<field name="approver_selection_method">use_group</field> | ||
<field | ||
name="approver_group_ids" | ||
eval="[(6,0,[ref('general_audit_ws_e78a3c6_validator_group')])]" | ||
/> | ||
</record> | ||
</odoo> |
14 changes: 14 additions & 0 deletions
14
ssi_general_audit_worksheet_understanding_entity/data/general_audit_worksheet_type_data.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,14 @@ | ||
<?xml version="1.0" ?> | ||
<!-- Copyright 2020 OpenSynergy Indonesia | ||
Copyright 2020 PT. Simetri Sinergi Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) --> | ||
<odoo> | ||
<data> | ||
<record id="worksheet_type_e78a3c6" model="general_audit_worksheet_type"> | ||
<field name="code">E78A3C6</field> | ||
<field name="name">Structure Organization and Responsibilities</field> | ||
<field name="sequence" eval="14000" /> | ||
<field name="category_id" ref="ssi_general_audit.worksheet_type_category_ra" /> | ||
</record> | ||
</data> | ||
</odoo> |
15 changes: 15 additions & 0 deletions
15
...eneral_audit_worksheet_understanding_entity/data/ir_sequence/general_audit_ws_e78a3c6.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_e78a3c6" model="ir.sequence"> | ||
<field name="name">Structure Organization and Responsibilities (e78a3c6)</field> | ||
<field name="code">general_audit_ws_e78a3c6</field> | ||
<field name="padding">6</field> | ||
<field name="prefix">WS-E78A3C6/%(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
...al_audit_worksheet_understanding_entity/data/policy_template/general_audit_ws_e78a3c6.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_e78a3c6" model="policy.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="state_field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','state')]" | ||
/> | ||
<field name="sequence" eval="100" /> | ||
<field name="python_code">result=True</field> | ||
</record> | ||
|
||
<!-- Start --> | ||
<record | ||
id="policy_template_general_audit_ws_e78a3c6_open" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','open_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_user_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Confirm --> | ||
<record | ||
id="policy_template_general_audit_ws_e78a3c6_confirm" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','confirm_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_user_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Cancel --> | ||
<record | ||
id="policy_template_general_audit_ws_e78a3c6_cancel" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','cancel_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Restart --> | ||
<record | ||
id="policy_template_general_audit_ws_e78a3c6_restart" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','restart_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
|
||
<!-- Reject --> | ||
<record | ||
id="policy_template_general_audit_ws_e78a3c6_reject" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','reject_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_approve" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','approve_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_manual_number" | ||
model="policy.template_detail" | ||
> | ||
<field name="template_id" ref="policy_template_general_audit_ws_e78a3c6" /> | ||
<field | ||
name="field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','manual_number_ok')]" | ||
/> | ||
<field name="restrict_state" eval="1" /> | ||
<field | ||
name="state_ids" | ||
search="[('field_id.model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6_validator_group')])]" | ||
/> | ||
<field name="restrict_additional" eval="0" /> | ||
</record> | ||
</odoo> |
26 changes: 26 additions & 0 deletions
26
..._audit_worksheet_understanding_entity/data/sequence_template/general_audit_ws_e78a3c6.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_e78a3c6" model="sequence.template"> | ||
<field name="name">Standard</field> | ||
<field name="model_id" ref="model_general_audit_ws_e78a3c6" /> | ||
<field name="sequence" eval="100" /> | ||
<field name="initial_string">/</field> | ||
<field | ||
name="sequence_field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('name','=','name')]" | ||
/> | ||
<field | ||
name="date_field_id" | ||
search="[('model_id.model','=','general_audit_ws_e78a3c6'),('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_e78a3c6" /> | ||
<field name="sequence_selection_method">use_sequence</field> | ||
<field name="add_custom_prefix" eval="0" /> | ||
<field name="add_custom_suffix" eval="0" /> | ||
</record> | ||
</odoo> |
8 changes: 8 additions & 0 deletions
8
ssi_general_audit_worksheet_understanding_entity/models/__init__.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,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, | ||
) |
22 changes: 22 additions & 0 deletions
22
ssi_general_audit_worksheet_understanding_entity/models/general_audit_ws_e78a3c6.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,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", | ||
) |
Oops, something went wrong.