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

[18.0][MIG] stock_picking_return_refund_option: Migration to 18.0 #1931

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b415970
[11.0][NEW] stock_picking_return_refund_option: New module for set re…
sergio-teruel Aug 28, 2018
439ef9e
[MIG] stock_picking_return_refund_option: Migration to v12.0
sergio-teruel Dec 4, 2019
ab9d840
[IMP] stock_picking_return_refund_option: black, isort
sergio-teruel Feb 25, 2020
392b998
[MIG] stock_picking_return_refund_option: Migration to v13.0
sergio-teruel Feb 25, 2020
4bdf883
[MIG] stock_picking_return_refund_option: Migration to v13.0
sergio-teruel Feb 25, 2020
5a2093f
[13.0][FIX] stock_picking_return_refund_option: Fix dependencies
rousseldenis Mar 31, 2021
5857a7c
[13.0][FIX] stock_picking_return_refund_option: Compute delivered qua…
sergio-teruel Apr 14, 2021
2a30dc8
[FIX] stock_picking_return_refund_option: Use Form in tests to avoid …
sergio-teruel Sep 5, 2021
28a9de5
[IMP] stock_picking_return_refund_option: Make tests resilient
pedrobaeza Jun 18, 2022
bc825b9
[IMP] stock_picking_return_refund_option: More resilience in tests
pedrobaeza Jun 19, 2022
52999fd
[MIG] stock_picking_return_refund_option: Migration to 15.0
cesar-tecnativa Jul 13, 2022
fcc8ea8
[FIX] stock_picking_return_refund_option: deprecated SavepointCase class
MiquelRForgeFlow Sep 13, 2022
8003fd8
[MIG] stock_picking_return_refund_option: pre-commit stuff
Yadier-Tecnativa Apr 12, 2023
ebb01bd
[MIG] stock_picking_return_refund_option: Migration to 16.0
Yadier-Tecnativa Apr 17, 2023
62967ef
[IMP] stock_picking_return_refund_option: test performance improvement
josep-tecnativa Oct 13, 2023
e9d599c
Added translation using Weblate (Italian)
mymage Feb 27, 2024
77043ed
[FIX] stock_picking_return_refund_option: Fallback to load CoA
victoralmau Feb 25, 2025
c3869f9
[IMP] stock_picking_return_refund_option: pre-commit auto fixes
CarlosRoca13 Feb 28, 2025
9eedb1f
[MIG] stock_picking_return_refund_option: Migration to 18.0
CarlosRoca13 Feb 28, 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
148 changes: 148 additions & 0 deletions stock_picking_return_refund_option/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
==================================
Stock Picking Return Refund Option
==================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/18.0/stock_picking_return_refund_option
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-stock_picking_return_refund_option
: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/account-invoicing&target_branch=18.0
:alt: Try me on Runboat

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

This module extends the functionality of sales and purchase orders to
support modify stock move field to_refund after it has been confirmed.

**Table of contents**

.. contents::
:local:

Installation
============

1. This module requires the additional installation of sale_stock or
purchase modules for enabling the features it contains.

Usage
=====

To use this module, when some customer returns some refundable products
to you after you created an invoice, you need to:

For a sale order:

1. Go to *Sales > Sales Orders > Create*.
2. Choose a customer and add a product whose *Invoicing Policy* is
*Delivered quantities*, and input some quantity to sell.
3. Confirm the sale.
4. Go to *Delivery > Validate > Apply*.
5. Return to the sale order.
6. Press *Create Invoice > Invoiceable lines > Create and View
Invoices*.
7. The created invoice's amount is the same you sold.
8. Return to the sale order.
9. Go to *Delivery > Return*.
10. Set *Quantity* to a lower quantity than the sold one, and enable *To
Refund*.
11. Press *Return > Validate > Apply*.
12. Return to the sale order.
13. Press *Create Invoice > Invoiceable lines (deduct down payments) >
Create and View Invoices*.
14. A refund is created for the quantity you returned before.

For allowing to refund quantities after the picking has been confirmed
if you did not check 'to refund' in wizard, you can change the value of
'Refund Options' field.

To use this module, when you return some refundable products to your
supplier after you created an invoice, you need to:

1. Go to *Purchase > Purchase Orders > Create*.
2. Choose a supplier and add a product whose *Invoicing Policy* is
*Delivered quantities*, and input some quantity to buy.
3. Confirm the order.
4. Go to *Delivery > Validate > Apply*.
5. Return to the purchase order.
6. Press on smart button "Invoices" and create one.
7. The created invoice's amount is the same you sold.
8. Return to the purchase order.
9. Go to *Delivery > Return*.
10. Set *Quantity* to a lower quantity than you bought, and enable *To
Refund*.
11. Press *Return > Validate > Apply*.
12. Return to the purchase order.

For allowing to refund quantities after the picking has been confirmed
if you did not check 'to refund' in wizard, you can change the value of
'Refund Options' field.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20stock_picking_return_refund_option%0Aversion:%2018.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>`__:

- Sergio Teruel
- César A. Sánchez
- Carlos Roca

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-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px
:target: https://github.com/sergio-teruel
:alt: sergio-teruel

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

|maintainer-sergio-teruel|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/18.0/stock_picking_return_refund_option>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_picking_return_refund_option/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
17 changes: 17 additions & 0 deletions stock_picking_return_refund_option/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Return Refund Option",
"summary": "Update the refund options in pickings",
"version": "18.0.1.0.0",
"development_status": "Production/Stable",
"category": "Sales",
"website": "https://github.com/OCA/account-invoicing",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["stock_account", "purchase_stock", "sale_stock"],
"data": ["views/stock_picking_view.xml"],
"maintainers": ["sergio-teruel"],
}
58 changes: 58 additions & 0 deletions stock_picking_return_refund_option/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_refund_option
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-08-09 10:06+0000\n"
"Last-Translator: jabelchi <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\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.3.2\n"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
msgid "Is Return"
msgstr "És devolució"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
msgid "No Refund"
msgstr ""

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
msgid "Refund Options"
msgstr "Opcions de devolució"

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
msgid "Stock Move"
msgstr "Moviment d'estoc"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
msgid ""
"This field allow modify 'to_refund' field value in all stock moves from this "
"picking after it has been confirmed.to_refund: set all stock moves to True "
"value and recompute delivered quantities in sale order.\n"
"no_refund: set all stock moves to False value and recompute delivered "
"quantities in sale/purchase order."
msgstr ""

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
msgid "To Refund"
msgstr ""

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
msgid "Transfer"
msgstr ""
70 changes: 70 additions & 0 deletions stock_picking_return_refund_option/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_refund_option
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-12-04 17:16+0000\n"
"PO-Revision-Date: 2019-12-04 18:17+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es_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: Poedit 2.0.6\n"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
msgid "Is Return"
msgstr "Es devolución"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
msgid "No Refund"
msgstr "No abonar"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
msgid "Refund Options"
msgstr "Opciones de devolución"

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de stock"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
msgid ""
"This field allow modify 'to_refund' field value in all stock moves from this "
"picking after it has been confirmed.to_refund: set all stock moves to True "
"value and recompute delivered quantities in sale order.\n"
"no_refund: set all stock moves to False value and recompute delivered "
"quantities in sale/purchase order."
msgstr ""
"Este campo permite modificar el valor del campo 'para abonar en el pedido' "
"de todos los movimientos de stock del albarán después de que haya sido "
"confirmado.\n"
"Para abonar en el pedido: Actualiza todos los movimientos de stock con el "
"valor a 'verdadero' y recalcula las unidades entregadas del pedido de "
"venta.\n"
"No abonar en el pedido: Actualiza todos los movimientos de stock con el "
"valor a 'falso' y recalcula las unidades entregadas del pedido de venta."

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
msgid "To Refund"
msgstr "Para abonar"

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
msgid "Transfer"
msgstr "Transferir"

#~ msgid "Return Picking"
#~ msgstr "Albarán de devolución"
61 changes: 61 additions & 0 deletions stock_picking_return_refund_option/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_return_refund_option
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-27 18:35+0000\n"
"Last-Translator: mymage <[email protected]>\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_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
msgid "Is Return"
msgstr "È un reso"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
msgid "No Refund"
msgstr "Non rimborsato"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
msgid "Refund Options"
msgstr "Opzioni rimborso"

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: stock_picking_return_refund_option
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
msgid ""
"This field allow modify 'to_refund' field value in all stock moves from this picking after it has been confirmed.to_refund: set all stock moves to True value and recompute delivered quantities in sale order.\n"
"no_refund: set all stock moves to False value and recompute delivered quantities in sale/purchase order."
msgstr ""
"Questo campo consente di modificare il valore del campo 'to_refund' in tutti "
"i movimenti di magazzino da questo prelievo dopo che è stato confermato. "
"To_refund: imposta il valore a True in tutti i movimenti di magazzino e "
"ricalcola le quantità consegnate nell'ordine di vendita. \n"
"No_refund: imposta il valore a False in tutti i movimenti di magazzino e "
"ricalcola le quantità consegnate nell'ordine di vendita/acquisto."

#. module: stock_picking_return_refund_option
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
msgid "To Refund"
msgstr "Da rimborsare"

#. module: stock_picking_return_refund_option
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
Loading