-
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
11 changed files
with
194 additions
and
193 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
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
23 changes: 23 additions & 0 deletions
23
ssi_general_audit_worksheet_inherent_risk/models/general_audit_inherent_risk_factor.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,23 @@ | ||
# 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 GeneralAuditInherentRiskFactor(models.Model): | ||
_name = "general_audit_inherent_risk_factor" | ||
_inherit = [ | ||
"mixin.master_data", | ||
] | ||
_description = "General Audit Inherent Risk Factor" | ||
_order = "sequence, id" | ||
|
||
sequence = fields.Integer( | ||
string="Sequence", | ||
default=10, | ||
) | ||
direct_impact = fields.Boolean( | ||
string="Direct Impact to Risk", | ||
default=False, | ||
) |
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
3 changes: 3 additions & 0 deletions
3
ssi_general_audit_worksheet_inherent_risk/security/ir.model.access.csv
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,3 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
client_general_audit_inherent_risk_factor_configurator,general_audit_inherent_risk_factor - configurator,model_general_audit_inherent_risk_factor,general_audit_inherent_risk_factor_group,1,1,1,1 | ||
client_general_audit_inherent_risk_factor_all,general_audit_inherent_risk_factor - all,model_general_audit_inherent_risk_factor,,1,0,0,0 |
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
18 changes: 18 additions & 0 deletions
18
ssi_general_audit_worksheet_inherent_risk/security/res_group_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,18 @@ | ||
<?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_inherent_risk_factor_group" model="res.groups"> | ||
<field name="name">Inherent Risk Factor</field> | ||
<field | ||
name="category_id" | ||
ref="ssi_accountant.accountant_configurator_module_category" | ||
/> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
</odoo> |
77 changes: 77 additions & 0 deletions
77
ssi_general_audit_worksheet_inherent_risk/views/general_audit_inherent_risk_factor_views.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,77 @@ | ||
<?xml version="1.0" ?> | ||
<!-- 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). --> | ||
<odoo> | ||
|
||
<record id="general_audit_inherent_risk_factor_view_search" model="ir.ui.view"> | ||
<field name="name">general_audit_inherent_risk_factor - search</field> | ||
<field name="model">general_audit_inherent_risk_factor</field> | ||
<field | ||
name="inherit_id" | ||
ref="ssi_master_data_mixin.mixin_master_data_view_search" | ||
/> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data /> | ||
</field> | ||
</record> | ||
|
||
<record id="general_audit_inherent_risk_factor_view_tree" model="ir.ui.view"> | ||
<field name="name">general_audit_inherent_risk_factor - tree</field> | ||
<field name="model">general_audit_inherent_risk_factor</field> | ||
<field | ||
name="inherit_id" | ||
ref="ssi_master_data_mixin.mixin_master_data_view_tree" | ||
/> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//field[@name='code']" position="before"> | ||
<field name="sequence" widget="handle" /> | ||
</xpath> | ||
<xpath expr="//field[@name='name']" position="after"> | ||
<field name="direct_impact" /> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="general_audit_inherent_risk_factor_view_form" model="ir.ui.view"> | ||
<field name="name">general_audit_inherent_risk_factor - form</field> | ||
<field name="model">general_audit_inherent_risk_factor</field> | ||
<field | ||
name="inherit_id" | ||
ref="ssi_master_data_mixin.mixin_master_data_view_form" | ||
/> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//field[@name='code']" position="after"> | ||
<field name="sequence" /> | ||
<field name="direct_impact" /> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record | ||
id="general_audit_inherent_risk_factor_action" | ||
model="ir.actions.act_window" | ||
> | ||
<field name="name">Inherent Risks Factors</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">general_audit_inherent_risk_factor</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem | ||
id="general_audit_inherent_risk_factor_menu" | ||
name="Inherent Risks Factors" | ||
parent="ssi_general_audit.menu_configuration_general_audit" | ||
action="general_audit_inherent_risk_factor_action" | ||
sequence="110" | ||
groups="general_audit_inherent_risk_factor_group" | ||
/> | ||
|
||
</odoo> |
Oops, something went wrong.