Skip to content

Commit

Permalink
Merge PR #611 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Dec 23, 2024
2 parents 5979e26 + 26785db commit e9dfe7d
Show file tree
Hide file tree
Showing 74 changed files with 29,743 additions and 0 deletions.
175 changes: 175 additions & 0 deletions mgmtsystem_nonconformity/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
=================================
Management System - Nonconformity
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5faf87fb11e2609147fb49b4fcf9920bd836083dcefba27f374144b36347371c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_nonconformity
: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_nonconformity
: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 nonconformities of your management
systems:

- Quality (ISO 9001)
- Environment (ISO 14001)
- Information Security (ISO 27001)
- Health and Safety (ISO 45001)
- IT Services (ISO 20000)

**Table of contents**

.. contents::
:local:

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

Users must be added to the appropriate groups within Odoo as follows:

- Creators: Settings > Users > Groups > Management System / User

Usage
=====

To use this module:

- Go to Management System > Nonconformities
- Click on Create to enter the following information:
- Partner : Customer, supplier or internal personnel
- Related to: Any reference pointing to the NC (order id, project id,
task id, etc.)
- Responsible: Person responsible for the NC
- Manager : Person managing the department or owner of the procedure
- Filled in by: Originator of NC report
- Origins: The source of the NC, how was it discover
- Procedures: Against which procedure is the NC
- Description: Evidence, reference to the standards
- Click on Save and then set state from Draft to Analysis.

Go to the newly created NC and fill in the following information:

In the Causes and Analysis tab:

- Causes: Add root causes
- Analysis: Describe the results of the investigation
- Severity: Select the severity among unfounded, minor and major

In the Description tab:

- Immediate action: Create or select an immediate action if appropriate

Click on the Save button and then on the "Action Plan" button in the top
right corner.

In the Actions tab, select or create new actions by entering the
following items:

- Subject: What must be done - Return to Supplier, Use As Is, Scrap,
Rework, Re-grade, Repair
- Deadline: Date by which the action must be completed
- Responsible: Person in charge for implementing the action
- Response Type: Immediate, corrective or preventive actions or
improvement opportunity
- Description: Details of the action

When the action is created, a notification is sent to the person
responsible for the action.

Enter comments into the input field below the "Plan Review" section,
those comments are required to reach the next stage.

To begin the work on the planned Actions change the stage of the NC to
open by clicking on the "In Progress" button in the top right corner.

When all actions of the plan are done, their effectiveness must be
evaluated before closing the NC.

Known issues / Roadmap
======================

- The custom emails should be replaced by Mail Tracking features and
Subtypes (like in Project Tasks and Project Issues)
- Automatically add responsible_user_id._uid, manager_user_id._uid,
author_user_id._uid to chatter

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_nonconformity%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
------------

- Daniel Reis <[email protected]>
- Glen Dromgoole <[email protected]>
- Loic Lacroix <[email protected]>
- Sandy Carter <[email protected]>
- Gervais Naoussi <[email protected]>
- Eugen Don <[email protected]>
- Jose Maria Alzaga <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda

Trobz

- Dung Tran <[email protected]>
- Tuan Nguyen <[email protected]>

Other credits
-------------

The development of this module has been financially supported by:

- Camptocamp

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_nonconformity>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions mgmtsystem_nonconformity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from . import models
from . import reports
40 changes: 40 additions & 0 deletions mgmtsystem_nonconformity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Management System - Nonconformity",
"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_action", "document_page_procedure"],
"data": [
"security/ir.model.access.csv",
"security/mgmtsystem_nonconformity_security.xml",
"views/mgmtsystem_nonconformity.xml",
"views/mgmtsystem_origin.xml",
"views/mgmtsystem_cause.xml",
"views/mgmtsystem_severity.xml",
"views/mgmtsystem_action.xml",
"views/mgmtsystem_nonconformity_stage.xml",
"data/sequence.xml",
"data/mgmtsystem_nonconformity_severity.xml",
"data/mgmtsystem_nonconformity_origin.xml",
"data/mgmtsystem_nonconformity_cause.xml",
"data/mgmtsystem_nonconformity_stage.xml",
"data/mail_message_subtype.xml",
"reports/mgmtsystem_nonconformity_report.xml",
],
"demo": [
"demo/mgmtsystem_nonconformity_origin.xml",
"demo/mgmtsystem_nonconformity_cause.xml",
"demo/mgmtsystem_nonconformity.xml",
],
"assets": {
"web.assets_backend": [
"mgmtsystem_nonconformity/static/src/**/*.xml",
# "mgmtsystem_nonconformity/static/src/**/*.js",
],
},
"installable": True,
}
16 changes: 16 additions & 0 deletions mgmtsystem_nonconformity/data/mail_message_subtype.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<odoo noupdate="1">
<!-- Not used at the moment. To use them override the _track_subtype method -->
<record id="subtype_analysis" model="mail.message.subtype">
<field name="name">Analysis</field>
<field name="res_model">mgmtsystem.nonconformity</field>
<field name="default" eval="False" />
<field name="description">Analysis</field>
</record>

<record id="subtype_pending" model="mail.message.subtype">
<field name="name">Pending Approval</field>
<field name="res_model">mgmtsystem.nonconformity</field>
<field name="default" eval="False" />
<field name="description">Pending Approval</field>
</record>
</odoo>
41 changes: 41 additions & 0 deletions mgmtsystem_nonconformity/data/mgmtsystem_nonconformity_cause.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<odoo noupdate="1">
<record id="badly_defined_need" model="mgmtsystem.nonconformity.cause">
<field name="name">Badly defined need</field>
</record>

<record id="work_conditions" model="mgmtsystem.nonconformity.cause">
<field name="name">Work conditions</field>
</record>

<record id="information_not_available" model="mgmtsystem.nonconformity.cause">
<field name="name">Information not available</field>
</record>

<record id="bad_communication" model="mgmtsystem.nonconformity.cause">
<field name="name">Bad communication</field>
</record>

<record id="bad_partner_relation" model="mgmtsystem.nonconformity.cause">
<field name="name">Bad customer/supplier relation</field>
</record>

<record id="hr_unavailable_inadequate" model="mgmtsystem.nonconformity.cause">
<field name="name">Human resource not available or inadequate</field>
</record>

<record id="instruction_not_respected" model="mgmtsystem.nonconformity.cause">
<field name="name">Instruction not respected</field>
</record>

<record id="procedure_not_respected" model="mgmtsystem.nonconformity.cause">
<field name="name">Procedure not respected</field>
</record>

<record id="technical_failure" model="mgmtsystem.nonconformity.cause">
<field name="name">Technical failure</field>
</record>

<record id="procedure_not_defined" model="mgmtsystem.nonconformity.cause">
<field name="name">Procedure not defined</field>
</record>
</odoo>
29 changes: 29 additions & 0 deletions mgmtsystem_nonconformity/data/mgmtsystem_nonconformity_origin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<odoo noupdate="1">
<record id="nc_origin_qc" model="mgmtsystem.nonconformity.origin">
<field name="name">Quality Committee</field>
</record>

<record id="nc_origin_dr" model="mgmtsystem.nonconformity.origin">
<field name="name">Direction Review</field>
</record>

<record id="nc_origin_internal_client" model="mgmtsystem.nonconformity.origin">
<field name="name">Internal client complaint</field>
</record>

<record id="nc_origin_external_client" model="mgmtsystem.nonconformity.origin">
<field name="name">External client complaint</field>
</record>

<record id="nc_origin_process" model="mgmtsystem.nonconformity.origin">
<field name="name">Process Execution</field>
</record>

<record id="nc_origin_internal_audit" model="mgmtsystem.nonconformity.origin">
<field name="name">Internal Audit</field>
</record>

<record id="nc_origin_extenal_audit" model="mgmtsystem.nonconformity.origin">
<field name="name">External Audit</field>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<odoo noupdate="1">
<record id="nonconformity_severity_maj" model="mgmtsystem.nonconformity.severity">
<field name="name">Major</field>
<field name="active" eval="True" />
</record>

<record id="nonconformity_severity_min" model="mgmtsystem.nonconformity.severity">
<field name="name">Minor</field>
<field name="active" eval="True" />
</record>

<record id="nonconformity_severity_no" model="mgmtsystem.nonconformity.severity">
<field name="name">Unfounded</field>
<field name="active" eval="True" />
</record>
</odoo>
32 changes: 32 additions & 0 deletions mgmtsystem_nonconformity/data/mgmtsystem_nonconformity_stage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<odoo noupdate="1">
<record id="stage_draft" model="mgmtsystem.nonconformity.stage">
<field name="name">Draft</field>
<field name="sequence">0</field>
<field name="state">draft</field>
</record>
<record id="stage_analysis" model="mgmtsystem.nonconformity.stage">
<field name="name">Analysis</field>
<field name="sequence">50</field>
<field name="state">analysis</field>
</record>
<record id="stage_pending" model="mgmtsystem.nonconformity.stage">
<field name="name">Action Plan</field>
<field name="sequence">100</field>
<field name="state">pending</field>
</record>
<record id="stage_open" model="mgmtsystem.nonconformity.stage">
<field name="name">In Progress</field>
<field name="sequence">150</field>
<field name="state">open</field>
</record>
<record id="stage_done" model="mgmtsystem.nonconformity.stage">
<field name="name">Closed</field>
<field name="sequence">200</field>
<field name="state">done</field>
</record>
<record id="stage_cancel" model="mgmtsystem.nonconformity.stage">
<field name="name">Cancelled</field>
<field name="sequence">250</field>
<field name="state">cancel</field>
</record>
</odoo>
7 changes: 7 additions & 0 deletions mgmtsystem_nonconformity/data/sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<odoo noupdate="1">
<record id="seq_mgmtsystem_nonconformity" model="ir.sequence">
<field name="name">Management System Nonconformity</field>
<field name="code">mgmtsystem.nonconformity</field>
<field name="padding">3</field>
</record>
</odoo>
27 changes: 27 additions & 0 deletions mgmtsystem_nonconformity/demo/mgmtsystem_nonconformity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<odoo>
<record id="demo_nonconformity" model="mgmtsystem.nonconformity">
<field name="partner_id" ref="base.res_partner_3" />
<field name="create_date">2010-12-03</field>
<field name="name">Demo Nonconformity</field>
<field name="responsible_user_id" ref="base.user_demo" />
<field name="manager_user_id" ref="base.user_root" />
<field name="user_id" ref="base.user_demo" />
<field
name="description"
>The procedure has changed with no comments on the revision.</field>
<field
name="analysis"
>Administrator didn't know he had to add a comment when changing the procedure.</field>
<field name="origin_ids" eval="[(6,0,[ref('demo_origin')])]" />
<field
name="procedure_ids"
eval="[(6,0,[ref('document_page_procedure.document_page_procedure')])]"
/>
<field name="cause_ids" eval="[(6,0,[ref('demo_cause')])]" />
<field name="immediate_action_id" ref="mgmtsystem_action.demo_immediate" />
<field
name="action_ids"
eval="[(6, 0, [ref('mgmtsystem_action.demo_immediate'), ref('mgmtsystem_action.demo_corrective'), ref('mgmtsystem_action.demo_preventive')])]"
/>
</record>
</odoo>
Loading

0 comments on commit e9dfe7d

Please sign in to comment.