Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] mgmtsystem_hazard_risk: Migration to 18.0 #651

Open
wants to merge 47 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
442f52f
[REF] Migrate mgmtsystem_hazard
llacroix Nov 20, 2014
e6765b1
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
c21f533
Fix 'singleton expexted error' on _compute_risk method
Dec 1, 2015
ec103c8
Fix code for pyflake8 convention
Dec 3, 2015
46b3bcb
Add unit test for mgmtsystem.hazard
Dec 8, 2015
302811a
Add unittest to cover all code
Dec 8, 2015
d99516b
OCA Transbot updated translations from Transifex
oca-transbot Dec 12, 2015
7fb2e3f
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
ee73acb
OCA Transbot updated translations from Transifex
oca-transbot Aug 27, 2016
0e0d5a2
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
bc35070
[UPD] Update mgmtsystem_hazard_risk.pot
oca-travis Jun 23, 2018
7eec419
[MIG] mgmtsystem_hazard_risk: Migration to 10.0
ngrandjean Sep 5, 2018
e6d2579
[UPD] Update mgmtsystem_hazard_risk.pot
oca-travis May 5, 2019
2d81a75
Update translation files
oca-transbot May 20, 2019
8759570
[UPD] Update mgmtsystem_hazard_risk.pot
oca-travis Oct 1, 2019
51d3f06
Update translation files
oca-transbot Oct 1, 2019
96cf621
[MIG] mgmtsystem_hazard_risk: Migration to 13.0
Mar 13, 2020
7230b67
Fix forgetting precommit
Mar 13, 2020
7f6a823
Fix duplicated res_id translation
Mar 14, 2020
e1c21d8
Correct sintaxt and contribution sign
Mar 15, 2020
53f8289
Multicompany added
Mar 16, 2020
c6e029c
[UPD] Update mgmtsystem_hazard_risk.pot
oca-travis Mar 16, 2020
8022a23
[UPD] README.rst
OCA-git-bot Mar 16, 2020
58e069b
Update translation files
oca-transbot Mar 18, 2020
c808d33
Update translation files
oca-transbot Aug 16, 2020
b29c201
[MIG] mgmtsystem_hazard_risk: Migration to 14.0
Jan 10, 2022
5310b30
[UPD] Update mgmtsystem_hazard_risk.pot
oca-travis Jan 12, 2022
965c61b
[UPD] README.rst
OCA-git-bot Jan 12, 2022
e8468d1
[MIG] mgmtsystem_hazard_risk: Migration to 15.0
YvanDotet May 18, 2022
3a0334d
[UPD] Update mgmtsystem_hazard_risk.pot
May 18, 2022
b734f94
Translated using Weblate (Italian)
mymage Nov 3, 2022
d3eaf44
[MIG] mgmtsystem_hazard_risk: Migration to 16.0
mymage Dec 19, 2022
8ebab75
[UPD] Update mgmtsystem_hazard_risk.pot
Dec 20, 2022
d392534
[UPD] README.rst
OCA-git-bot Dec 20, 2022
2273d61
Update translation files
weblate Dec 20, 2022
5e7c11e
Translated using Weblate (Italian)
francesco-ooops Jan 30, 2023
1e85acb
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 31, 2023
c9f6685
Translated using Weblate (Spanish)
Ivorra78 Jul 7, 2023
41c35fb
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d7e7301
Update translation files
weblate Oct 9, 2023
c56c2a3
[IMP] mgmtsystem_hazard_risk: pre-commit auto fixes
Apr 23, 2024
78620f1
[MIG] mgmtsystem_hazard_risk: Migration to 17.0
Apr 23, 2024
ea026b6
[UPD] Update mgmtsystem_hazard_risk.pot
Sep 23, 2024
33cee25
[BOT] post-merge updates
OCA-git-bot Sep 23, 2024
5eae039
Update translation files
weblate Sep 23, 2024
be32194
[IMP] mgmtsystem_hazard_risk: pre-commit auto fixes
HeliconiaSolutions Jan 23, 2025
2d25941
[MIG] mgmtsystem_hazard_risk: Migration to 18.0
HeliconiaSolutions Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions mgmtsystem_hazard_risk/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
===========
Hazard Risk
===========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1f9f1a852f779b58a1b6fbe84b853f6fd9ac7215cc1b723d99623a75449b42a7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github
:target: https://github.com/OCA/management-system/tree/18.0/mgmtsystem_hazard_risk
:alt: OCA/management-system
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/management-system-18-0/management-system-18-0-mgmtsystem_hazard_risk
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/management-system&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module enables you to manage the risks of your health and safety
management system. This is a sub module of management system hazard.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

- go to Settings > Management System
- in Risk computation group, select the risk computation formula

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/management-system/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_hazard_risk%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Savoir-faire Linux

Contributors
------------

- Maxime Chambreuil <[email protected]>
- Loïc Lacroix <[email protected]>
- Nadège Grandjean <[email protected]>
- `Guadaltech <https://www.guadaltech.es>`__:

- Fernando La Chica <[email protected]>

- Yvan Dotet <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/management-system <https://github.com/OCA/management-system/tree/18.0/mgmtsystem_hazard_risk>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions mgmtsystem_hazard_risk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
23 changes: 23 additions & 0 deletions mgmtsystem_hazard_risk/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Hazard Risk",
"version": "18.0.1.0.0",
"author": "Savoir-faire Linux, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/management-system",
"license": "AGPL-3",
"category": "Management System",
"depends": ["mgmtsystem_hazard", "hr"],
"data": [
"security/ir.model.access.csv",
"security/mgmtsystem_hazard_security.xml",
"data/mgmtsystem_hazard_risk_computation.xml",
"data/mgmtsystem_hazard_risk_type.xml",
"views/mgmtsystem_hazard.xml",
"views/mgmtsystem_hazard_risk_type.xml",
"views/mgmtsystem_hazard_risk_computation.xml",
"views/mgmtsystem_hazard_residual_risk.xml",
"views/res_config_settings_views.xml",
],
"installable": True,
}
54 changes: 54 additions & 0 deletions mgmtsystem_hazard_risk/data/mgmtsystem_hazard_risk_computation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- risk_computation -->

<record
id="risk_computation_a_times_b_times_c"
model="mgmtsystem.hazard.risk.computation"
>
<field name="name">A * B * C</field>
<field
name="description"
>Risk = Probability (A) x Severity (B) x Usage (C)</field>
</record>

<record id="risk_computation_a_times_b" model="mgmtsystem.hazard.risk.computation">
<field name="name">A * B</field>
<field name="description">Risk = Probability (A) x Severity (B)</field>
</record>

<record id="risk_computation_a_plus_b" model="mgmtsystem.hazard.risk.computation">
<field name="name">A + B</field>
<field name="description">Risk = Probability (A) + Severity (B)</field>
</record>

<record
id="risk_computation_a_times_b_plus_c"
model="mgmtsystem.hazard.risk.computation"
>
<field name="name">(A * B) + C</field>
<field
name="description"
>Risk = ( Probability (A) x Severity (B) ) + Usage (C)</field>
</record>

<record
id="risk_computation_a_plus_b_times_c"
model="mgmtsystem.hazard.risk.computation"
>
<field name="name">(A + B) * C</field>
<field
name="description"
>Risk = ( Probability (A) + Severity (B) ) x Usage (C)</field>
</record>

<record
id="risk_computation_a_plus_b_plus_c"
model="mgmtsystem.hazard.risk.computation"
>
<field name="name">A + B + C</field>
<field
name="description"
>Risk = Probability (A) + Severity (B) + Usage (C)</field>
</record>
</odoo>
24 changes: 24 additions & 0 deletions mgmtsystem_hazard_risk/data/mgmtsystem_hazard_risk_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- risk_type -->

<record id="risk_type_physical" model="mgmtsystem.hazard.risk.type" forcecreate="0">
<field name="name">Physical</field>
</record>

<record id="risk_type_chemical" model="mgmtsystem.hazard.risk.type" forcecreate="0">
<field name="name">Chemical</field>
</record>

<record id="risk_type_fire" model="mgmtsystem.hazard.risk.type" forcecreate="0">
<field name="name">Fire</field>
</record>

<record
id="risk_type_environment"
model="mgmtsystem.hazard.risk.type"
forcecreate="0"
>
<field name="name">Environment</field>
</record>
</odoo>
Loading
Loading