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

[13.0][MIG] pos_order_return #1284

Draft
wants to merge 71 commits into
base: 13.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
82b7678
[MIG] pos_order_return: Migration to 10.0
chienandalu Apr 24, 2018
a3de84f
[UPD] Update pos_order_return.pot
oca-travis Jun 22, 2018
c5e2ed4
[MIG] pos_order_return: Migration to 11.0
kirca Sep 8, 2018
14b8b70
[UPD] Update pos_order_return.pot
oca-travis Oct 2, 2018
89c8c68
Use only tilde for section underline in readme fragments
sbidoul Oct 3, 2018
c935c97
pos_order_return: no sections in readme fragments
sbidoul Oct 5, 2018
2a99c6f
[UPD] README.rst
OCA-git-bot Oct 6, 2018
9297597
[UPD] README.rst
OCA-git-bot Dec 2, 2018
ca2353c
Update translation files
oca-transbot Dec 2, 2018
9c75e34
[FIX] pos_order_return: return picking and invoices
chienandalu Jan 23, 2019
33dd16d
Update translation files
oca-transbot Jan 30, 2019
1f1f1b2
[UPD] Update pos_order_return.pot
oca-travis Jan 30, 2019
0ed92f4
Update translation files
oca-transbot Jan 30, 2019
47b441b
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
26aeabb
[FIX] pos_order_return: ensure test correctness
chienandalu Apr 2, 2019
f60e786
[UPD] README.rst
OCA-git-bot Jul 29, 2019
81ab09d
[MIG] pos_order_return: Migration to 12.0
chienandalu Nov 27, 2019
a41dcda
[UPD] Update pos_order_return.pot
oca-travis Dec 11, 2019
77c2d2c
[IMP] pos_order_return: improve description
chienandalu Dec 11, 2019
4d8b3ab
Update translation files
oca-transbot Dec 30, 2019
5bf07a6
[ADD] pos_order_return_traceability
dalonsod Feb 5, 2020
b38ac4e
Translated using Weblate (Spanish)
dalonsod Feb 11, 2020
43a8f12
[FIX] pos_order_return: bad image paths in readme segments
legalsylvain Apr 20, 2020
3a717e5
[UPD] README.rst
OCA-git-bot Apr 20, 2020
755b010
pos_order_return 12.0.1.0.1
OCA-git-bot Apr 20, 2020
bde422f
[FIX] pos_order_return: prevent error when trying to refund a pos ord…
legalsylvain Apr 25, 2020
12650ea
[UPD] Update pos_order_return.pot
oca-travis Apr 27, 2020
b91be07
Update translation files
oca-transbot Apr 27, 2020
69e0b1e
[FIX] Wrong Total on pos order partial return
ajayjaviya Jun 3, 2020
9a98e51
[FIX] Partail return on pos order is not working when l10n_fr_pos_cer…
ajayjaviya Jun 3, 2020
0e8529c
[UPD] Update pos_order_return.pot
oca-travis Jun 4, 2020
345b78b
[UPD] README.rst
OCA-git-bot Jun 4, 2020
0f6dc25
pos_order_return 12.0.1.0.2
OCA-git-bot Jun 4, 2020
ab1e60d
Update translation files
oca-transbot Jun 4, 2020
c7a79f2
[FIX] pos_order_return is not computing correctly substotals on full …
ivantodorovich Jun 22, 2020
b1e9e91
[UPD] Update pos_order_return.pot
oca-travis Jun 22, 2020
615fa4d
pos_order_return 12.0.1.0.3
OCA-git-bot Jun 22, 2020
ae2c869
Update translation files
oca-transbot Jun 22, 2020
e71a84b
Added translation using Weblate (Catalan)
brendapaniagua Sep 1, 2020
e2ab98f
Translated using Weblate (Catalan)
brendapaniagua Sep 1, 2020
ae1b682
Update translation files
oca-transbot Nov 22, 2020
9cb5d38
[IMP] pos_order_return: isort, black, prettier.
dsolanki-initos May 26, 2021
e1c4426
[MIG] Migrate module pos_order_return to v14.
dsolanki-initos Jun 8, 2021
7a085c0
[UPD] Update pos_order_return.pot
oca-travis Jul 16, 2021
7483d95
[UPD] README.rst
OCA-git-bot Jul 16, 2021
1c47f14
Added translation using Weblate (Portuguese)
pedrocs-exo Sep 20, 2021
bd74244
Translated using Weblate (Portuguese)
pedrocs-exo Sep 20, 2021
3e7dfb7
Added translation using Weblate (Italian)
francesco-ooops Nov 23, 2021
c49149c
Translated using Weblate (Italian)
francesco-ooops Dec 3, 2021
9719fd3
Translated using Weblate (Italian)
SicurSam Dec 3, 2021
13137d2
Translated using Weblate (Italian)
francesco-ooops Dec 3, 2021
aa615d8
[FIX] pos_order_return : disable buggy test
legalsylvain Mar 29, 2022
b286717
[UPD] README.rst
OCA-git-bot Apr 1, 2022
7178e66
pos_order_return 14.0.1.0.1
OCA-git-bot Apr 1, 2022
7f3c2b0
Translated using Weblate (Catalan)
Noel000 Apr 13, 2022
79cc57d
Translated using Weblate (Italian)
francesco-ooops Jul 4, 2022
94c5705
Translated using Weblate (Italian)
francesco-ooops Jan 18, 2023
7c282c2
Translated using Weblate (Italian)
mymage Mar 17, 2023
add97ac
[FIX] pos_order_return: make returns properly
chienandalu Apr 21, 2023
f8562eb
[UPD] README.rst
OCA-git-bot May 3, 2023
5db51b4
pos_order_return 14.0.1.0.2
OCA-git-bot May 3, 2023
300f561
[FIX] Returns and sales are allowed on the same order.
zamberjo Jun 20, 2023
9d87173
pos_order_return 14.0.1.0.3
OCA-git-bot Jun 29, 2023
14b31d0
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6ba87a2
Update translation files
weblate Oct 9, 2023
37264e6
Translated using Weblate (Italian)
mymage Dec 6, 2023
f87f72e
[FIX] pos_order_return: empty returns
chienandalu Jan 4, 2024
62f399c
[BOT] post-merge updates
OCA-git-bot Jan 4, 2024
160d8e6
Translated using Weblate (Spanish)
anmarmo1 Feb 23, 2024
94deed2
[IMP] pos_order_return: pre-commit auto fixes
rrebollo Jan 14, 2025
82d3c4a
[FIX] pos_order_return: update version to 13.0.1.0.0
rrebollo Jan 14, 2025
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
152 changes: 152 additions & 0 deletions pos_order_return/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
==========================
Point of Sale Order Return
==========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/14.0/pos_order_return
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_order_return
: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/pos&target_branch=14.0
:alt: Try me on Runboat

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

This module extends the functionality of odoo Point Of Sale about POS Order
returns.

With this module, it is now forbidden to return more quantity than the initial
one.

A link is created between the returned Order and the initial Order.
A link is created between the returned Order Line and the initial Order Line.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

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

In some cases, you may want to block the possibility to allow negative quantity
in a PoS Order, without mentioning initial order. This can happen for special
products like returnable products, etc.

In that case, a checkbox is possible on Product Form View to allow such case

.. image:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_order_return/static/description/product_returnable_bottle.png

Usage
=====

Select an PoS Order an choose either *Return Products* (full return of the
order) or *Partial Return*. In this case, a wizard allows to select just some
products and quantities to return:

.. image:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_order_return/static/description/partial_return_wizard.png

Register the refund payment to finish the return. If the original order was
invoiced, a refund invoice will be made.

**Implemented Constraints**

* User can not return more products than the initial quantity:

.. image:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_order_return/static/description/returned_qty_over_initial.png

* If a line has been partially refund, only a reduced quantity can be returned:

.. image:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_order_return/static/description/sum_returned_qty_over_initial.png

* It is not possible to set a negative quantity if the initial Pos Order is
not indicated:

.. image:: https://raw.githubusercontent.com/OCA/pos/14.0/pos_order_return/static/description/initial_pos_order_required.png

Known issues / Roadmap
======================

* When migrating the module ``pos_order_return`` in version > 12.0 please merge
both modules ``pos_order_return`` and ``pos_order_return_traceability`` into a
single module.
* Stock update on session close is uncovered right now.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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/pos/issues/new?body=module:%20pos_order_return%0Aversion:%2014.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
~~~~~~~

* La Louve
* GRAP
* Tecnativa
* Lambda IS

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

* Sylvain LE GAL <https://twitter.com/legalsylvain>
* David Vidal <david.vidal@tecnativa.com>
* Kiril Vangelovski <kiril@lambda-is.com>
* Druidoo <https://www.druidoo.io>
* Dhara Solanki <dhara.solanki@initos.com>

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

Funders
~~~~~~~

The development of this module has been financially supported by:

* La Louve (www.lalouve.net)
* GRAP, Groupement Régional Alimentaire de Proximité (www.grap.coop)

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/pos <https://github.com/OCA/pos/tree/14.0/pos_order_return>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions pos_order_return/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
27 changes: 27 additions & 0 deletions pos_order_return/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2016-2018 Sylvain LE GAL (https://twitter.com/legalsylvain)
# Copyright 2018 David Vidal <david.vidal@tecnativa.com>
# Copyright 2018 Lambda IS DOOEL <https://www.lambda-is.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale Order Return",
"version": "13.0.1.0.0",
"category": "Point Of Sale",
"author": "La Louve, "
"GRAP, "
"Tecnativa, "
"Lambda IS, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/pos",
"development_status": "Alpha",
"depends": ["point_of_sale"],
"data": [
"security/ir.model.access.csv",
"wizard/pos_partial_return_wizard_view.xml",
"views/pos_order_view.xml",
"views/product_product_view.xml",
],
"demo": ["demo/product_product.xml"],
"installable": True,
}
20 changes: 20 additions & 0 deletions pos_order_return/demo/product_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="product_product_returnable_bottle" model="product.product">
<field name="name">Returnable Bottle</field>
<field name="default_code">RET-BOTL</field>
<field name="categ_id" ref="product.product_category_all" />
<field name="uom_id" ref="uom.product_uom_unit" />
<field name="sale_ok" eval="True" />
<field name="available_in_pos" eval="True" />
<field name="pos_allow_negative_qty" eval="True" />
<field name="list_price" eval="0.20" />
<field
name="image_128"
type="base64"
file="pos_order_return/static/img/product_returnable_bottle-image.jpg"
/>
</record>

</odoo>
Loading
Loading