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][ADD] stock_picking_limit_return_qty #1424

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
6 changes: 6 additions & 0 deletions setup/stock_picking_limit_return_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,
)
103 changes: 103 additions & 0 deletions stock_picking_limit_return_qty/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
==============================
Stock Picking Return Qty Limit
==============================

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

.. |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_limit_return_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_limit_return_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|

Limit the item quantity that can be returned. It makes impossible to
return more items than it was in the original picking.

If user tries to return more items than it is possible to return
following blocking messages is shown: "You can return only of
<product_name>"

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

By default Odoo doesn't enforce any limit on item quantity that can be
returned in picking. It means that it is possible to return more items
that there were in the original picking. Eg if you delivered 5 pcs of
"Acoustic Block Screens" in picking you can return 8 pcs of it. This
module implements constraint with allows to return not more than the
original amount of item in the picking. It also takes into account
existing returns for the same picking. Eg if you delivered 5 pcs of
"Acoustic Block Screens" in picking then you can return no more than 5
pcs of it. If you have already returned 2 pcs in the same picking then
you can return no more than 3 pcs.

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_limit_return_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
-------

* Cetmix

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

- `Cetmix <https://cetmix.com>`__

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.

.. |maintainer-CetmixGitDrone| image:: https://github.com/CetmixGitDrone.png?size=40px
:target: https://github.com/CetmixGitDrone
:alt: CetmixGitDrone

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-CetmixGitDrone|

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_limit_return_qty>`_ 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_picking_limit_return_qty/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
18 changes: 18 additions & 0 deletions stock_picking_limit_return_qty/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 Cetmix OU
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Picking Return Qty Limit",
"summary": """
Don't allow to return more items as there were in the original picking""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Cetmix,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["stock"],
"maintainers": ["CetmixGitDrone"],
"data": [
"wizard/stock_picking_return.xml",
],
"demo": [],
}
4 changes: 4 additions & 0 deletions stock_picking_limit_return_qty/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
By default Odoo doesn't enforce any limit on item quantity that can be returned in picking. It means that it is possible to return more items that there were in the original picking.
Eg if you delivered 5 pcs of "Acoustic Block Screens" in picking you can return 8 pcs of it.
This module implements constraint with allows to return not more than the original amount of item in the picking. It also takes into account existing returns for the same picking.
Eg if you delivered 5 pcs of "Acoustic Block Screens" in picking then you can return no more than 5 pcs of it. If you have already returned 2 pcs in the same picking then you can return no more than 3 pcs.
1 change: 1 addition & 0 deletions stock_picking_limit_return_qty/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [Cetmix](https://cetmix.com)
4 changes: 4 additions & 0 deletions stock_picking_limit_return_qty/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Limit the item quantity that can be returned. It makes impossible to return more items than it was in the original picking.

If user tries to return more items than it is possible to return following blocking messages is shown: "You can return only <X> of <product_name>"

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading