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

[16.0] [MIG] stock_picking_return_restricted_qty: Migration to 16.0 #1642

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e717280
[ADD] stock_picking_return_restricted_qty New module
CarlosRoca13 Mar 10, 2020
18b730f
[UPD] Update stock_picking_return_restricted_qty.pot
oca-travis Apr 16, 2020
7cb90c9
[UPD] README.rst
OCA-git-bot Apr 16, 2020
b8e8852
[ADD] icon.png
OCA-git-bot Apr 16, 2020
f63525e
Added translation using Weblate (Chinese (Simplified))
dong-z May 2, 2020
639b996
Translated using Weblate (Chinese (Simplified))
dong-z May 2, 2020
84c1a5e
Update translation files
oca-transbot May 12, 2020
91d6564
Update translation files
oca-transbot Aug 16, 2020
6c43191
[FIX] stock_picking_return_restricted_qty: Use Form in tests to avoid…
sergio-teruel Sep 6, 2021
8ec3b25
[IMP] Update dotfiles + switch to GH actions
pedrobaeza Apr 28, 2022
4389a0f
[IMP] stock_picking_return_restricted_qty: black, isort, prettier
CarlosRoca13 Aug 1, 2022
f31f1f2
[MIG] stock_picking_return_restricted_qty: Migration to 15.0
CarlosRoca13 Aug 1, 2022
ada99be
[UPD] Update stock_picking_return_restricted_qty.pot
Aug 1, 2022
6b20841
[UPD] README.rst
OCA-git-bot Aug 1, 2022
1690ebd
[FIX]stock_picking_return_restricted_qty: fix quantity on return chain
vib-adhoc Aug 10, 2022
0e3b8db
[UPD] README.rst
OCA-git-bot Sep 3, 2023
b705e32
Update translation files
weblate Oct 9, 2023
5805415
[IMP] stock_picking_return_restricted_qty: test performance improvement
josep-tecnativa Oct 25, 2023
bee7540
[BOT] post-merge updates
OCA-git-bot Oct 25, 2023
32acf0d
Translated using Weblate (Spanish)
Ivorra78 Oct 22, 2023
ab59f74
Added translation using Weblate (Italian)
mymage Nov 24, 2023
e314807
Translated using Weblate (Italian)
mymage Nov 24, 2023
8897bfb
[IMP] stock_picking_return_restricted_qty: pre-commit execution
ced-adhoc Jul 2, 2024
b87b62c
[16.0][MIG] stock_picking_return_restricted_qty: Migration to 16.0
ced-adhoc Oct 7, 2024
5525f7f
[IMP] stock_picking_return_restricted_qty: add restrict_return_qty se…
ced-adhoc Oct 7, 2024
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
6 changes: 6 additions & 0 deletions setup/stock_picking_return_restricted_qty/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
99 changes: 99 additions & 0 deletions stock_picking_return_restricted_qty/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
===================================
Stock Picking Return Restricted Qty
===================================

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

.. |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/16.0/stock_picking_return_restricted_qty
: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-16-0/stock-logistics-workflow-16-0-stock_picking_return_restricted_qty
: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=16.0
:alt: Try me on Runboat

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

This module doesn't allow you to return more quantity of products than the
delivered.

**Table of contents**

.. contents::
:local:

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

To manage analytic account tags using this module, you need to:

#. Navigate to **Inventory > Configuration > Operations Types**.
#. Select the Operation Type for which you want to enable the restriction.
#. Check the box "Restrict Return Quantity" and save.

Usage
=====

To use this module, you need to:

#. Create an outgoing or an internal picking.
#. Include one or more products with enough stock.
#. Validate the picking.
#. Try to return more products than the delivered and see the warning message.

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_picking_return_restricted_qty%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
~~~~~~~

* Tecnativa

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

* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Roca
* Sergio Teruel

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/16.0/stock_picking_return_restricted_qty>`_ 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_picking_return_restricted_qty/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import wizard
from . import models
15 changes: 15 additions & 0 deletions stock_picking_return_restricted_qty/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Picking Return Restricted Qty",
"summary": "Restrict the return to delivered quantity",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["stock"],
"data": [
"views/stock_picking_type_views.xml",
],
}
34 changes: 34 additions & 0 deletions stock_picking_return_restricted_qty/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_restricted_qty
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-09 10:45+0000\n"
"PO-Revision-Date: 2023-10-28 18:52+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\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: Weblate 4.17\n"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking
msgid "Return Picking"
msgstr "Albarán de devolución"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking_line
msgid "Return Picking Line"
msgstr "Línea de Albarán de devolución"

#. module: stock_picking_return_restricted_qty
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#, python-format
msgid "Return more quantities than delivered is not allowed."
msgstr "No está permitido devolver más cantidades de las entregadas."
34 changes: 34 additions & 0 deletions stock_picking_return_restricted_qty/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_restricted_qty
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-24 10:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking
msgid "Return Picking"
msgstr "Prelievo di reso"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking_line
msgid "Return Picking Line"
msgstr "Riga prelievo di reso"

#. module: stock_picking_return_restricted_qty
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#, python-format
msgid "Return more quantities than delivered is not allowed."
msgstr "Non è permesso rendere una quantità maggiore del consegnato."
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_restricted_qty
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking
msgid "Return Picking"
msgstr ""

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking_line
msgid "Return Picking Line"
msgstr ""

#. module: stock_picking_return_restricted_qty
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#, python-format
msgid "Return more quantities than delivered is not allowed."
msgstr ""
33 changes: 33 additions & 0 deletions stock_picking_return_restricted_qty/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_restricted_qty
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-05-02 13:19+0000\n"
"Last-Translator: Dong <dong@freshoo.cn>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.10\n"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking
msgid "Return Picking"
msgstr "退货调拨单"

#. module: stock_picking_return_restricted_qty
#: model:ir.model,name:stock_picking_return_restricted_qty.model_stock_return_picking_line
msgid "Return Picking Line"
msgstr "退货调拨明细"

#. module: stock_picking_return_restricted_qty
#: code:addons/stock_picking_return_restricted_qty/wizard/stock_picking_return.py:0
#, python-format
msgid "Return more quantities than delivered is not allowed."
msgstr "退货数量不允许超出送货数量。"
1 change: 1 addition & 0 deletions stock_picking_return_restricted_qty/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking_type
16 changes: 16 additions & 0 deletions stock_picking_return_restricted_qty/models/stock_picking_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockPickingType(models.Model):
_inherit = "stock.picking.type"

restrict_return_qty = fields.Boolean(
string="Restrict Return Quantity",
help=(
"Enable this option to restrict returning more quantities "
"than delivered."
),
default=False,
)
5 changes: 5 additions & 0 deletions stock_picking_return_restricted_qty/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To manage analytic account tags using this module, you need to:

#. Navigate to **Inventory > Configuration > Operations Types**.
#. Select the Operation Type for which you want to enable the restriction.
#. Check the box "Restrict Return Quantity" and save.
4 changes: 4 additions & 0 deletions stock_picking_return_restricted_qty/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Roca
* Sergio Teruel
2 changes: 2 additions & 0 deletions stock_picking_return_restricted_qty/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module doesn't allow you to return more quantity of products than the
delivered.
6 changes: 6 additions & 0 deletions stock_picking_return_restricted_qty/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To use this module, you need to:

#. Create an outgoing or an internal picking.
#. Include one or more products with enough stock.
#. Validate the picking.
#. Try to return more products than the delivered and see the warning message.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading