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

[12.0][MIG] stock_request_tier_validation #608

Merged
Merged
119 changes: 119 additions & 0 deletions stock_request_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
=============================
Stock Request Tier Validation
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_tier_validation
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_tier_validation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/12.0
:alt: Try me on Runbot

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

This module extends the functionality of Stock Requests and Stock Request
Orders to support a tier validation process.

**Table of contents**

.. contents::
:local:

Installation
============

This module depends on ``base_tier_validation``. You can find it at
`OCA/server-ux <https://github.com/OCA/server-ux>`_

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

A default tier is created allowing Stock Request Manager to approve Stock
Request and Stock Request Orders.

In addition, you may want to add more tiers, so:

#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
#. Create as many tiers as you want for Purchase Order model.

Usage
=====

To use this module, you need to:

#. Create a Stock Request triggering at least one "Tier Definition".
#. Click on *Request Validation* button.
#. Under the tab *Reviews* have a look to pending reviews and their statuses.
#. Once all reviews are validated button to *Confirm* will be shown.

Additional features:

* You can filter the Stock Request requesting your review through the filter *Needs my
Review*.
* User with rights to confirm the Stock Request (validate all tiers that would
be generated) can directly do the operation, this is, there is no need for
her/him to request a validation.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_tier_validation%0Aversion:%2012.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
~~~~~~~

* Eficent

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

* Lois Rilo <lois.rilo@eficent.com>
* Héctor Villarreal <hector.villarreal@eficent.com>


Other credits
~~~~~~~~~~~~~

Images
------

* Enric Tobella (logo)

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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_tier_validation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_request_tier_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions stock_request_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Request Tier Validation",
"summary": "Extends the functionality of Stock Requests to "
"support a tier validation process.",
"version": "12.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Eficent, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"stock_request",
"base_tier_validation",
],
"data": [
"data/stock_request_tier_definition.xml",
"views/stock_request_order_view.xml",
"views/stock_request_view.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2019 Eficent Business and IT Consulting Services S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">

<record id="stock_request_default_tier_definition" model="tier.definition">
<field name="name">Manager review</field>
<field name="model_id" ref="model_stock_request"/>
<field name="definition_type">domain</field>
<field name="definition_domain"/>
<field name="review_type">group</field>
<field name="reviewer_group_id" ref='stock_request.group_stock_request_manager'/>
<field name="active">False</field>
</record>

<record id="stock_request_order_default_tier_definition" model="tier.definition">
<field name="name">Manager review</field>
<field name="model_id" ref="model_stock_request_order"/>
<field name="definition_type">domain</field>
<field name="definition_domain"/>
<field name="review_type">group</field>
<field name="reviewer_group_id" ref='stock_request.group_stock_request_manager'/>
<field name="active">False</field>
</record>

</data>
</odoo>
128 changes: 128 additions & 0 deletions stock_request_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_request_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-05-15 15:59+0000\n"
"Last-Translator: Lois Rilo <lois.rilo@eficent.com>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.6.1\n"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid ""
"<i class=\"fa fa-info-circle\"/>This Stock Request needs to be\n"
" validated."
msgstr ""
"<i class=\"fa fa-info-circle\"/>Esta Solicitud de existencias debe ser\n"
" validada."

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "<i class=\"fa fa-thumbs-down\"/> Operation has been <b>rejected</b>."
msgstr "<i class=\"fa fa-thumbs-down\"/>La operación ha sido <b>rechazada</b>."

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "<i class=\"fa fa-thumbs-up\"/> Operation has been <b>validated</b>!"
msgstr "<i class=\"fa fa-thumbs-up\"/>La operación ha sido <b>validada</b>!"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz
#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz
msgid "Dismiss"
msgstr "Descartar"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter
#, fuzzy
#| msgid "Stock Request Order"
msgid "My Stock Request Orders to review"
msgstr "Pedido de existencias"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter
#, fuzzy
#| msgid "Stock Request Order"
msgid "My Stock Requests to review"
msgstr "Pedido de existencias"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter
msgid "Need actions"
msgstr "Acción necesaria"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter
msgid "Needs my Review"
msgstr "Necesita mi revisión"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "Reject"
msgstr "Rechazar"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "Request Validation"
msgstr "Solicitar Validación"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "Restart Validation"
msgstr "Reiniciar Validación"

#. module: stock_request_tier_validation
#: model:ir.model,name:stock_request_tier_validation.model_stock_request
msgid "Stock Request"
msgstr "Solicitud de existencias"

#. module: stock_request_tier_validation
#: model:ir.model,name:stock_request_tier_validation.model_stock_request_order
msgid "Stock Request Order"
msgstr "Pedido de existencias"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter
msgid "Stock Requests validated and ready to be confirmed"
msgstr "Pedido de existencias validadas y preparadas para ser confirmadas"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz
#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz
msgid "Tier Review"
msgstr "Revisión de nivel"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier
msgid "Validate"
msgstr "Validar"

#. module: stock_request_tier_validation
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter
#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter
msgid "Validated"
msgstr "Validada"

#. module: stock_request_tier_validation
#: model:ir.model,name:stock_request_tier_validation.model_tier_definition
msgid "tier.definition"
msgstr "tier.definition"