Skip to content

Commit e645ae9

Browse files
kaynnanBhaveshHeliconia
authored andcommitted
[ADD] mgmtsystem_nonconformity_hazard: add new module
1 parent 5807e1c commit e645ae9

13 files changed

+631
-0
lines changed
+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
========================================
2+
Management System - Nonconformity Hazard
3+
========================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:578b704165890b6e14659e56e8aa797c308628369e6b94266204845a143f5013
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github
20+
:target: https://github.com/OCA/management-system/tree/16.0/mgmtsystem_nonconformity_hazard
21+
:alt: OCA/management-system
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/management-system-16-0/management-system-16-0-mgmtsystem_nonconformity_hazard
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/management-system&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows the user to relate hazards to a nonconformity.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Usage
39+
=====
40+
41+
NC Maintenance
42+
43+
* Go to Management System → Nonconformity
44+
* Create new Nonconformity
45+
* Go to the "Hazards" tab.
46+
* Select the related hazards.
47+
48+
Bug Tracker
49+
===========
50+
51+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/management-system/issues>`_.
52+
In case of trouble, please check there if your issue has already been reported.
53+
If you spotted it first, help us to smash it by providing a detailed and welcomed
54+
`feedback <https://github.com/OCA/management-system/issues/new?body=module:%20mgmtsystem_nonconformity_hazard%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
55+
56+
Do not contact contributors directly about support or help with technical issues.
57+
58+
Credits
59+
=======
60+
61+
Authors
62+
~~~~~~~
63+
64+
* Escodoo
65+
66+
Contributors
67+
~~~~~~~~~~~~
68+
69+
`Escodoo <https://www.escodoo.com.br>`_:
70+
71+
* Marcel Savegnago <[email protected]>
72+
* Kaynnan Lemes <[email protected]>
73+
* Douglas Custodio <[email protected]>
74+
75+
Maintainers
76+
~~~~~~~~~~~
77+
78+
This module is maintained by the OCA.
79+
80+
.. image:: https://odoo-community.org/logo.png
81+
:alt: Odoo Community Association
82+
:target: https://odoo-community.org
83+
84+
OCA, or the Odoo Community Association, is a nonprofit organization whose
85+
mission is to support the collaborative development of Odoo features and
86+
promote its widespread use.
87+
88+
This module is part of the `OCA/management-system <https://github.com/OCA/management-system/tree/16.0/mgmtsystem_nonconformity_hazard>`_ project on GitHub.
89+
90+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2024 - TODAY, Escodoo
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Management System - Nonconformity Hazard",
6+
"version": "16.0.1.0.0",
7+
"author": "Escodoo, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/management-system",
9+
"license": "AGPL-3",
10+
"category": "Management System",
11+
"depends": ["mgmtsystem_hazard", "mgmtsystem_nonconformity"],
12+
"data": [
13+
"views/mgmtsystem_hazard.xml",
14+
"views/mgmtsystem_nonconformity.xml",
15+
],
16+
"autoinstall": True,
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import mgmtsystem_nonconformity
2+
from . import mgmtsystem_hazard
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class MgmtsystemHazard(models.Model):
8+
9+
_inherit = "mgmtsystem.hazard"
10+
11+
nonconformity_ids = fields.Many2many(
12+
"mgmtsystem.nonconformity", string="Nonconformity"
13+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class MgmtsystemNonconformity(models.Model):
8+
9+
_inherit = "mgmtsystem.nonconformity"
10+
11+
hazard_ids = fields.Many2many("mgmtsystem.hazard", string="Risk Analysis")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
`Escodoo <https://www.escodoo.com.br>`_:
2+
3+
* Marcel Savegnago <[email protected]>
4+
* Kaynnan Lemes <[email protected]>
5+
* Douglas Custodio <[email protected]>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows the user to relate hazards to a nonconformity.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
NC Maintenance
2+
3+
* Go to Management System → Nonconformity
4+
* Create new Nonconformity
5+
* Go to the "Hazards" tab.
6+
* Select the related hazards.
Loading

0 commit comments

Comments
 (0)