-
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 conclusion * Add dissenting reason
- Loading branch information
Showing
16 changed files
with
374 additions
and
39 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
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,11 @@ | ||
# Copyright 2022 OpenSynergy Indonesia | ||
# Copyright 2022 PT. Simetri Sinergi Indonesia | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import models | ||
|
||
|
||
class RiskAnalysisConslusion(models.Model): | ||
_name = "risk_analysis_conclusion" | ||
_inherit = ["mixin.master_data"] | ||
_description = "Risk Analysis Conclusion" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2022 OpenSynergy Indonesia | ||
# Copyright 2022 PT. Simetri Sinergi Indonesia | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class RiskAnalysisTypeConclusion(models.Model): | ||
_name = "risk_analysis_type.conclusion" | ||
_description = "Risk Analysis Type - Conclusion" | ||
_order = "type_id, sequence, id" | ||
|
||
type_id = fields.Many2one( | ||
string="Type", | ||
comodel_name="risk_analysis_type", | ||
required=True, | ||
ondelete="cascade", | ||
) | ||
sequence = fields.Integer( | ||
string="Sequence", | ||
default=10, | ||
required=True, | ||
) | ||
conclusion_id = fields.Many2one( | ||
string="Conclusion", | ||
comodel_name="risk_analysis_conclusion", | ||
required=True, | ||
onldete="restrict", | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2022 OpenSynergy Indonesia | ||
# Copyright 2022 PT. Simetri Sinergi Indonesia | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class RiskItemConclusion(models.Model): | ||
_name = "risk_item.conclusion" | ||
_description = "Risk Item Conclusion" | ||
_order = "item_id, sequence, id" | ||
|
||
item_id = fields.Many2one( | ||
string="Item", | ||
comodel_name="risk_item", | ||
required=True, | ||
ondelete="cascade", | ||
) | ||
sequence = fields.Integer( | ||
string="Sequence", | ||
default=10, | ||
required=True, | ||
) | ||
conclusion_id = fields.Many2one( | ||
string="Conclusion", | ||
comodel_name="risk_analysis_conclusion", | ||
required=True, | ||
onldete="restrict", | ||
) |
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
56 changes: 56 additions & 0 deletions
56
ssi_risk_analysis/views/risk_analysis_conclusion_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,56 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2022 OpenSynergy Indonesia | ||
Copyright 2022 PT. Simetri Sinergi Indonesia | ||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> | ||
<odoo> | ||
<record id="risk_analysis_conclusion_view_search" model="ir.ui.view"> | ||
<field name="name">risk_analysis_conclusion - search</field> | ||
<field name="model">risk_analysis_conclusion</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="risk_analysis_conclusion_view_tree" model="ir.ui.view"> | ||
<field name="name">risk_analysis_conclusion - tree</field> | ||
<field name="model">risk_analysis_conclusion</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 /> | ||
</field> | ||
</record> | ||
|
||
<record id="risk_analysis_conclusion_view_form" model="ir.ui.view"> | ||
<field name="name">risk_analysis_conclusion - form</field> | ||
<field name="model">risk_analysis_conclusion</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> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="risk_analysis_conclusion_action" model="ir.actions.act_window"> | ||
<field name="name">Risk Analysis Conclusions</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">risk_analysis_conclusion</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem | ||
id="risk_analysis_conclusion_menu" | ||
name="Conclusions" | ||
parent="menu_risk_analysis_configuration" | ||
action="risk_analysis_conclusion_action" | ||
groups="risk_analysis_conclusion_group" | ||
sequence="140" | ||
/> | ||
|
||
</odoo> |
Oops, something went wrong.