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

[4613][ADD] quanlity_control_stock_oca #137

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
94 changes: 94 additions & 0 deletions quality_control_stock_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
=============================
Quality control - Stock (OCA)
=============================

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

.. |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%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/16.0/quality_control_stock_oca
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-quality_control_stock_oca
: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/manufacture&target_branch=16.0
:alt: Try me on Runboat

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

This module defines triggers that creates inspections when stock moves are done.

It also adds some shortcuts on picking and lots to these inspections.

**Table of contents**

.. contents::
:local:

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

* Put trigger in all languages.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/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/manufacture/issues/new?body=module:%20quality_control_stock_oca%0Aversion:%2016.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
~~~~~~~

* OdooMRP team
* AvanzOSC
* Serv. Tecnol. Avanzados - Pedro M. Baeza
* Agile Business Group

Contributors
~~~~~~~~~~~~

* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Simone Rubino <simone.rubino@agilebg.com>
* Andrii Skrypka <andrijskrypa@ukr.net>
* Ignacio José Alés <ignacio.ales@guadaltech.es>
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Carlos Roca

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/manufacture <https://github.com/OCA/manufacture/tree/16.0/quality_control_stock_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
14 changes: 14 additions & 0 deletions quality_control_stock_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza
# Copyright 2018 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from odoo import api, SUPERUSER_ID


def post_init_hook(cr, registry):
# Create QC triggers
env = api.Environment(cr, SUPERUSER_ID, {})
picking_type_ids = env["stock.picking.type"].sudo().search([])
for picking_type_id in picking_type_ids:
picking_type_id.sudo()._create_qc_trigger()
24 changes: 24 additions & 0 deletions quality_control_stock_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza
# Copyright 2014 Oihane Crucelaegui - AvanzOSC
# Copyright 2018 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Quality control - Stock (OCA)",
"version": "16.0.1.0.0",
"category": "Quality control",
"license": "AGPL-3",
"author": "OdooMRP team, AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Agile Business Group, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"depends": ["quality_control_oca", "stock"],
"data": [
"views/qc_inspection_view.xml",
"views/stock_picking_view.xml",
"views/stock_production_lot_view.xml",
"views/qc_trigger_view.xml",
],
"post_init_hook": "post_init_hook",
"installable": True,
"auto_install": True,
}
153 changes: 153 additions & 0 deletions quality_control_stock_oca/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * quality_control_stock
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: manufacture (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-22 07:24+0000\n"
"PO-Revision-Date: 2021-02-22 08:29+0100\n"
"Last-Translator: Carlos <carlos.roca@tecnativa.com>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-manufacture-8-0/"
"language/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n"

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_lot__created_inspections
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_picking__created_inspections
msgid "Created inspections"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_lot__done_inspections
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_picking__done_inspections
msgid "Done inspections"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_lot__qc_inspections_ids
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_picking__qc_inspections_ids
msgid "Inspections"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_lot__passed_inspections
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_picking__passed_inspections
msgid "Inspections OK"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_lot__failed_inspections
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_stock_picking__failed_inspections
msgid "Inspections failed"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,help:quality_control_stock_oca.field_stock_lot__qc_inspections_ids
msgid "Inspections related to this lot."
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,help:quality_control_stock_oca.field_stock_picking__qc_inspections_ids
msgid "Inspections related to this picking."
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_qc_inspection__lot_id
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_qc_inspection_line__lot_id
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.qc_inspection_line_search_stock_view
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.qc_inspection_search_view_picking
msgid "Lot"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_stock_lot
msgid "Lot/Serial"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_qc_inspection__picking_id
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_qc_inspection_line__picking_id
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.qc_inspection_line_search_stock_view
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.qc_inspection_search_view_picking
msgid "Picking"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_stock_picking_type
#: model:ir.model.fields,field_description:quality_control_stock_oca.field_qc_trigger__picking_type_id
msgid "Picking Type"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_qc_inspection
msgid "Quality control inspection"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_qc_inspection_line
msgid "Quality control inspection line"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_qc_trigger
msgid "Quality control trigger"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_lot_done
msgid "Quality inspection from lot done"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_lot_passed
msgid "Quality inspection from lot passed"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_picking_done
msgid "Quality inspection from picking done"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_picking_passed
msgid "Quality inspection from picking passed"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_lot
msgid "Quality inspections from lot"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_lot_failed
msgid "Quality inspections from lot failed"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_picking
msgid "Quality inspections from picking"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.actions.act_window,name:quality_control_stock_oca.action_qc_inspection_per_picking_failed
msgid "Quality inspections from picking failed"
msgstr ""

#. module: quality_control_stock_oca
#: model:ir.model,name:quality_control_stock_oca.model_stock_picking
msgid "Transfer"
msgstr ""

#. module: quality_control_stock_oca
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.stock_lot_qc_view
#: model_terms:ir.ui.view,arch_db:quality_control_stock_oca.stock_picking_qc_view
msgid "inspections"
msgstr ""
Loading
Loading