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

[14.0] [mig] pos_order_return #671

Merged
merged 43 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
96ec78d
[MIG] pos_order_return: Migration to 10.0
chienandalu Apr 24, 2018
86c42e3
[UPD] Update pos_order_return.pot
oca-travis Jun 22, 2018
00e9e86
[MIG] pos_order_return: Migration to 11.0
kirca Sep 8, 2018
da5985b
[UPD] Update pos_order_return.pot
oca-travis Oct 2, 2018
5c04222
Use only tilde for section underline in readme fragments
sbidoul Oct 3, 2018
69dbeb5
pos_order_return: no sections in readme fragments
sbidoul Oct 5, 2018
78cad2a
[UPD] README.rst
OCA-git-bot Oct 6, 2018
ee02c97
[UPD] README.rst
OCA-git-bot Dec 2, 2018
f9026fc
Update translation files
oca-transbot Dec 2, 2018
3f4356c
[FIX] pos_order_return: return picking and invoices
chienandalu Jan 23, 2019
6682ade
Update translation files
oca-transbot Jan 30, 2019
0d0043d
[UPD] Update pos_order_return.pot
oca-travis Jan 30, 2019
06b6fe4
Update translation files
oca-transbot Jan 30, 2019
bd2a257
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
d0c9e19
[FIX] pos_order_return: ensure test correctness
chienandalu Apr 2, 2019
9259cb4
[UPD] README.rst
OCA-git-bot Jul 29, 2019
097549c
[MIG] pos_order_return: Migration to 12.0
chienandalu Nov 27, 2019
b79161d
[UPD] Update pos_order_return.pot
oca-travis Dec 11, 2019
a430647
[IMP] pos_order_return: improve description
chienandalu Dec 11, 2019
0804949
Update translation files
oca-transbot Dec 30, 2019
b6640ee
[ADD] pos_order_return_traceability
dalonsod Feb 5, 2020
59521ec
Translated using Weblate (Spanish)
dalonsod Feb 11, 2020
9a63cc5
[FIX] pos_order_return: bad image paths in readme segments
legalsylvain Apr 20, 2020
2795db1
[UPD] README.rst
OCA-git-bot Apr 20, 2020
17bc8cd
pos_order_return 12.0.1.0.1
OCA-git-bot Apr 20, 2020
2167c11
[FIX] pos_order_return: prevent error when trying to refund a pos ord…
legalsylvain Apr 25, 2020
1deeb13
[UPD] Update pos_order_return.pot
oca-travis Apr 27, 2020
f03c7b6
Update translation files
oca-transbot Apr 27, 2020
b2ea423
[FIX] Wrong Total on pos order partial return
ajayjaviya Jun 3, 2020
c27faf2
[FIX] Partail return on pos order is not working when l10n_fr_pos_cer…
ajayjaviya Jun 3, 2020
461256d
[UPD] Update pos_order_return.pot
oca-travis Jun 4, 2020
c2995cc
[UPD] README.rst
OCA-git-bot Jun 4, 2020
9d45ebb
pos_order_return 12.0.1.0.2
OCA-git-bot Jun 4, 2020
50ca70f
Update translation files
oca-transbot Jun 4, 2020
fc40379
[FIX] pos_order_return is not computing correctly substotals on full …
ivantodorovich Jun 22, 2020
fd27a7a
[UPD] Update pos_order_return.pot
oca-travis Jun 22, 2020
f6ed431
pos_order_return 12.0.1.0.3
OCA-git-bot Jun 22, 2020
5961fae
Update translation files
oca-transbot Jun 22, 2020
ca7969c
Added translation using Weblate (Catalan)
brendapaniagua Sep 1, 2020
e3b2a48
Translated using Weblate (Catalan)
brendapaniagua Sep 1, 2020
7b82860
Update translation files
oca-transbot Nov 22, 2020
19934c6
[IMP] pos_order_return: isort, black, prettier.
dsolanki-initos May 26, 2021
8605d3e
[MIG] Migrate module pos_order_return to v14.
dsolanki-initos Jun 8, 2021
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
142 changes: 142 additions & 0 deletions pos_order_return/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
==========================
Point of Sale Order Return
==========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/12.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-12-0/pos-12-0-pos_order_return
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/12.0
:alt: Try me on Runbot

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

**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/12.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/12.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/12.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/12.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/12.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.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_order_return%0Aversion:%2012.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 <[email protected]>
* Kiril Vangelovski <[email protected]>
* Druidoo <https://www.druidoo.io>

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/12.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
30 changes: 30 additions & 0 deletions pos_order_return/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2016-2018 Sylvain LE GAL (https://twitter.com/legalsylvain)
# Copyright 2018 David Vidal <[email protected]>
# 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": "14.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",
"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