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

[17.0][MIG] stock_scrap_tier_validation: Migration to 17.0 #1654

Open
wants to merge 13 commits into
base: 17.0
Choose a base branch
from
Open
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
112 changes: 112 additions & 0 deletions stock_scrap_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
===========================
Stock Scrap Tier Validation
===========================

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

.. |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--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_scrap_tier_validation
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-17-0/stock-logistics-workflow-17-0-stock_scrap_tier_validation
: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/stock-logistics-workflow&target_branch=17.0
:alt: Try me on Runboat

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

This module extends the functionality of Stock Scrap 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
=============

To configure this module, you need to:

1. Go to *Settings > Technical > Tier Validations > Tier Definition*.
2. Create as many tiers as you want for Stock Scrap model.

Usage
=====

To use this module, you need to:

1. Create a Stock Scrap triggering at least one "Tier Definition".
2. Click on *Request Validation* button.
3. Under the tab *Reviews* have a look to pending reviews and their
statuses.
4. Once all reviews are validated click on *Validate*.

Additional features:

- You can filter the Stock Scrap requesting your review through the
filter *Needs my Review*.
- User with rights to confirm the Stock Scrap (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-workflow/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/stock-logistics-workflow/issues/new?body=module:%20stock_scrap_tier_validation%0Aversion:%2017.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
-------

* Jarsa

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

- `Jarsa <https://www.jarsa.com>`__:

- Alan Ramos

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-workflow <https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_scrap_tier_validation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions stock_scrap_tier_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
21 changes: 21 additions & 0 deletions stock_scrap_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Scrap Tier Validation",
"version": "17.0.1.0.0",
"category": "Stock",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Jarsa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"stock",
"base_tier_validation",
],
"data": [
"data/mail_message_subtype_data.xml",
"views/stock_scrap_view.xml",
],
}
30 changes: 30 additions & 0 deletions stock_scrap_tier_validation/data/mail_message_subtype_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="stock_scrap_tier_validation_requested"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Requested</field>
<field name="res_model">stock.scrap</field>
<field name="internal">True</field>
</record>
<record
id="stock_scrap_tier_validation_accepted"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Accepted Notification</field>
<field name="res_model">stock.scrap</field>
<field name="internal">True</field>
</record>
<record
id="stock_scrap_tier_validation_rejected"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Rejected Notification</field>
<field name="res_model">stock.scrap</field>
<field name="internal">True</field>
</record>
</odoo>
118 changes: 118 additions & 0 deletions stock_scrap_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_scrap_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-11 18:37+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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 4.17\n"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__can_review
msgid "Can Review"
msgstr "Puede Revisar"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__has_comment
msgid "Has Comment"
msgstr "Tiene Comentario"

#. module: stock_scrap_tier_validation
#: model_terms:ir.ui.view,arch_db:stock_scrap_tier_validation.view_stock_scrap_filter
msgid "My Scraps to review"
msgstr "Mis Recortes para revisar"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__need_validation
msgid "Need Validation"
msgstr "Necesita Validación"

#. module: stock_scrap_tier_validation
#: model_terms:ir.ui.view,arch_db:stock_scrap_tier_validation.view_stock_scrap_filter
msgid "Needs my Review"
msgstr "Necesita mi Revisión"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__next_review
msgid "Next Review"
msgstr "Siguiente Revisión"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__rejected
msgid "Rejected"
msgstr "Rechazado"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__rejected_message
msgid "Rejected Message"
msgstr "Mensaje Rechazado"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__reviewer_ids
msgid "Reviewers"
msgstr "Revisores"

#. module: stock_scrap_tier_validation
#: model:ir.model,name:stock_scrap_tier_validation.model_stock_scrap
msgid "Scrap"
msgstr "Desecho"

#. module: stock_scrap_tier_validation
#: model_terms:ir.ui.view,arch_db:stock_scrap_tier_validation.view_stock_scrap_filter
msgid "Scraps validated and ready to be confirmed"
msgstr "Recortes validados y listos para ser confirmados"

#. module: stock_scrap_tier_validation
#: model:ir.model,name:stock_scrap_tier_validation.model_tier_definition
msgid "Tier Definition"
msgstr "Definición del nivel"

#. module: stock_scrap_tier_validation
#: model:mail.message.subtype,name:stock_scrap_tier_validation.stock_scrap_tier_validation_accepted
msgid "Tier Validation Accepted Notification"
msgstr "Notificación de Validación de Nivel Aceptada"

#. module: stock_scrap_tier_validation
#: model:mail.message.subtype,name:stock_scrap_tier_validation.stock_scrap_tier_validation_rejected
msgid "Tier Validation Rejected Notification"
msgstr "Validación de nivel Notificación rechazada"

#. module: stock_scrap_tier_validation
#: model:mail.message.subtype,name:stock_scrap_tier_validation.stock_scrap_tier_validation_requested
msgid "Tier Validation Requested"
msgstr "Validación de nivel solicitada"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__to_validate_message
msgid "To Validate Message"
msgstr "Para validar el mensaje"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__validated
#: model_terms:ir.ui.view,arch_db:stock_scrap_tier_validation.view_stock_scrap_filter
msgid "Validated"
msgstr "Validado"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__validated_message
msgid "Validated Message"
msgstr "Mensaje Validado"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__validation_status
msgid "Validation Status"
msgstr "Estado de validación"

#. module: stock_scrap_tier_validation
#: model:ir.model.fields,field_description:stock_scrap_tier_validation.field_stock_scrap__review_ids
msgid "Validations"
msgstr "Validaciones"
Loading
Loading