Skip to content

Commit

Permalink
Merge pull request #1390 from OCA/17.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/stock-logistics-workflow (17.0)
  • Loading branch information
bt-admin authored Jan 31, 2025
2 parents 760cf07 + 56e46c3 commit 84b9abf
Show file tree
Hide file tree
Showing 42 changed files with 1,923 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ addon | version | maintainers | summary
[stock_picking_warn_message](stock_picking_warn_message/) | 17.0.1.0.0 | | Add a popup warning on picking to ensure warning is populated
[stock_quant_package_dimension](stock_quant_package_dimension/) | 17.0.1.0.0 | | Use dimensions on packages
[stock_quant_package_product_packaging](stock_quant_package_product_packaging/) | 17.0.1.0.0 | | Use product packagings on packages
[stock_restrict_lot](stock_restrict_lot/) | 17.0.1.2.0 | [![florian-dacosta](https://github.com/florian-dacosta.png?size=30px)](https://github.com/florian-dacosta) | Base module that add back the concept of restrict lot on stock move
[stock_restrict_lot](stock_restrict_lot/) | 17.0.1.2.1 | [![florian-dacosta](https://github.com/florian-dacosta.png?size=30px)](https://github.com/florian-dacosta) | Base module that add back the concept of restrict lot on stock move
[stock_scrap_tier_validation](stock_scrap_tier_validation/) | 17.0.1.0.0 | | Stock Scrap Tier Validation
[stock_scrap_tier_validation_mrp](stock_scrap_tier_validation_mrp/) | 17.0.1.0.0 | | Stock Scrap Tier Validation: MRP compatibility
[stock_split_picking](stock_split_picking/) | 17.0.1.0.0 | | Split a picking in two not transferred pickings
[stock_valuation_layer_usage](stock_valuation_layer_usage/) | 17.0.1.0.1 | | Trace where has the stock valuation been used in, including the quantities taken.

Expand Down
4 changes: 3 additions & 1 deletion setup/_metapackage/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "odoo-addons-oca-stock-logistics-workflow"
version = "17.0.20250116.0"
version = "17.0.20250130.0"
dependencies = [
"odoo-addon-delivery_procurement_group_carrier>=17.0dev,<17.1dev",
"odoo-addon-purchase_stock_picking_invoice_link>=17.0dev,<17.1dev",
Expand Down Expand Up @@ -34,6 +34,8 @@ dependencies = [
"odoo-addon-stock_quant_package_dimension>=17.0dev,<17.1dev",
"odoo-addon-stock_quant_package_product_packaging>=17.0dev,<17.1dev",
"odoo-addon-stock_restrict_lot>=17.0dev,<17.1dev",
"odoo-addon-stock_scrap_tier_validation>=17.0dev,<17.1dev",
"odoo-addon-stock_scrap_tier_validation_mrp>=17.0dev,<17.1dev",
"odoo-addon-stock_split_picking>=17.0dev,<17.1dev",
"odoo-addon-stock_valuation_layer_usage>=17.0dev,<17.1dev",
]
Expand Down
2 changes: 1 addition & 1 deletion stock_restrict_lot/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Stock Restrict Lot
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:00ff8e2abcdd536138a0bf51463e00f076ac3fe94947998cda2b6792ef723d5b
!! source digest: sha256:3a3e8a3900b06efd2f82391bfb36d2cb46d12e816de672e9683b1eb109517afe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion stock_restrict_lot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Stock Restrict Lot",
"summary": "Base module that add back the concept of restrict lot on stock move",
"version": "17.0.1.2.0",
"version": "17.0.1.2.1",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Akretion, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion stock_restrict_lot/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Stock Restrict Lot</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:00ff8e2abcdd536138a0bf51463e00f076ac3fe94947998cda2b6792ef723d5b
!! source digest: sha256:3a3e8a3900b06efd2f82391bfb36d2cb46d12e816de672e9683b1eb109517afe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_restrict_lot"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-17-0/stock-logistics-workflow-17-0-stock_restrict_lot"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module add a field to restrict a stock move to a specific lot. It
Expand Down
2 changes: 1 addition & 1 deletion stock_restrict_lot/tests/test_restrict_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def setUpClass(cls):
super().setUpClass()
cls.customer_loc = cls.env.ref("stock.stock_location_customers")
cls.output_loc = cls.env.ref("stock.stock_location_output")
cls.product = cls.env.ref("product.product_product_16")
cls.product = cls.env.ref("product.product_product_16").copy()
cls.product.write({"tracking": "lot"})
cls.warehouse = cls.env.ref("stock.warehouse0")
cls.warehouse.write({"delivery_steps": "pick_ship"})
Expand Down
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:b2b9ccb0fe2078758c41ee4ca14a3d4a8567ca329933577bcab05f14749811c2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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

0 comments on commit 84b9abf

Please sign in to comment.