Skip to content

Commit 74e9e1f

Browse files
committed
Merge PR OCA#1931 into 18.0
Signed-off-by pedrobaeza
2 parents 71feedf + 9eedb1f commit 74e9e1f

20 files changed

+1222
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
==================================
2+
Stock Picking Return Refund Option
3+
==================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:faadfb1fb3ffb287a70b251e5ae89daa22f18cce203e1e3878cfbf21a6c5fc3e
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Production/Stable
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
20+
:target: https://github.com/OCA/account-invoicing/tree/18.0/stock_picking_return_refund_option
21+
:alt: OCA/account-invoicing
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-stock_picking_return_refund_option
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends the functionality of sales and purchase orders to
32+
support modify stock move field to_refund after it has been confirmed.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Installation
40+
============
41+
42+
1. This module requires the additional installation of sale_stock or
43+
purchase modules for enabling the features it contains.
44+
45+
Usage
46+
=====
47+
48+
To use this module, when some customer returns some refundable products
49+
to you after you created an invoice, you need to:
50+
51+
For a sale order:
52+
53+
1. Go to *Sales > Sales Orders > Create*.
54+
2. Choose a customer and add a product whose *Invoicing Policy* is
55+
*Delivered quantities*, and input some quantity to sell.
56+
3. Confirm the sale.
57+
4. Go to *Delivery > Validate > Apply*.
58+
5. Return to the sale order.
59+
6. Press *Create Invoice > Invoiceable lines > Create and View
60+
Invoices*.
61+
7. The created invoice's amount is the same you sold.
62+
8. Return to the sale order.
63+
9. Go to *Delivery > Return*.
64+
10. Set *Quantity* to a lower quantity than the sold one, and enable *To
65+
Refund*.
66+
11. Press *Return > Validate > Apply*.
67+
12. Return to the sale order.
68+
13. Press *Create Invoice > Invoiceable lines (deduct down payments) >
69+
Create and View Invoices*.
70+
14. A refund is created for the quantity you returned before.
71+
72+
For allowing to refund quantities after the picking has been confirmed
73+
if you did not check 'to refund' in wizard, you can change the value of
74+
'Refund Options' field.
75+
76+
To use this module, when you return some refundable products to your
77+
supplier after you created an invoice, you need to:
78+
79+
1. Go to *Purchase > Purchase Orders > Create*.
80+
2. Choose a supplier and add a product whose *Invoicing Policy* is
81+
*Delivered quantities*, and input some quantity to buy.
82+
3. Confirm the order.
83+
4. Go to *Delivery > Validate > Apply*.
84+
5. Return to the purchase order.
85+
6. Press on smart button "Invoices" and create one.
86+
7. The created invoice's amount is the same you sold.
87+
8. Return to the purchase order.
88+
9. Go to *Delivery > Return*.
89+
10. Set *Quantity* to a lower quantity than you bought, and enable *To
90+
Refund*.
91+
11. Press *Return > Validate > Apply*.
92+
12. Return to the purchase order.
93+
94+
For allowing to refund quantities after the picking has been confirmed
95+
if you did not check 'to refund' in wizard, you can change the value of
96+
'Refund Options' field.
97+
98+
Bug Tracker
99+
===========
100+
101+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.
102+
In case of trouble, please check there if your issue has already been reported.
103+
If you spotted it first, help us to smash it by providing a detailed and welcomed
104+
`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**>`_.
105+
106+
Do not contact contributors directly about support or help with technical issues.
107+
108+
Credits
109+
=======
110+
111+
Authors
112+
-------
113+
114+
* Tecnativa
115+
116+
Contributors
117+
------------
118+
119+
- `Tecnativa <https://www.tecnativa.com>`__:
120+
121+
- Sergio Teruel
122+
- César A. Sánchez
123+
- Carlos Roca
124+
125+
Maintainers
126+
-----------
127+
128+
This module is maintained by the OCA.
129+
130+
.. image:: https://odoo-community.org/logo.png
131+
:alt: Odoo Community Association
132+
:target: https://odoo-community.org
133+
134+
OCA, or the Odoo Community Association, is a nonprofit organization whose
135+
mission is to support the collaborative development of Odoo features and
136+
promote its widespread use.
137+
138+
.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px
139+
:target: https://github.com/sergio-teruel
140+
:alt: sergio-teruel
141+
142+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
143+
144+
|maintainer-sergio-teruel|
145+
146+
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.
147+
148+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2018 Tecnativa - Sergio Teruel
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Stock Picking Return Refund Option",
5+
"summary": "Update the refund options in pickings",
6+
"version": "18.0.1.0.0",
7+
"development_status": "Production/Stable",
8+
"category": "Sales",
9+
"website": "https://github.com/OCA/account-invoicing",
10+
"author": "Tecnativa, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"application": False,
13+
"installable": True,
14+
"depends": ["stock_account", "purchase_stock", "sale_stock"],
15+
"data": ["views/stock_picking_view.xml"],
16+
"maintainers": ["sergio-teruel"],
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_picking_return_refund_option
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2022-08-09 10:06+0000\n"
10+
"Last-Translator: jabelchi <jabelchi@gmail.com>\n"
11+
"Language-Team: none\n"
12+
"Language: ca\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: stock_picking_return_refund_option
20+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
21+
msgid "Is Return"
22+
msgstr "És devolució"
23+
24+
#. module: stock_picking_return_refund_option
25+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
26+
msgid "No Refund"
27+
msgstr ""
28+
29+
#. module: stock_picking_return_refund_option
30+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
31+
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
32+
msgid "Refund Options"
33+
msgstr "Opcions de devolució"
34+
35+
#. module: stock_picking_return_refund_option
36+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
37+
msgid "Stock Move"
38+
msgstr "Moviment d'estoc"
39+
40+
#. module: stock_picking_return_refund_option
41+
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
42+
msgid ""
43+
"This field allow modify 'to_refund' field value in all stock moves from this "
44+
"picking after it has been confirmed.to_refund: set all stock moves to True "
45+
"value and recompute delivered quantities in sale order.\n"
46+
"no_refund: set all stock moves to False value and recompute delivered "
47+
"quantities in sale/purchase order."
48+
msgstr ""
49+
50+
#. module: stock_picking_return_refund_option
51+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
52+
msgid "To Refund"
53+
msgstr ""
54+
55+
#. module: stock_picking_return_refund_option
56+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
57+
msgid "Transfer"
58+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_picking_return_refund_option
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 11.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2019-12-04 17:16+0000\n"
10+
"PO-Revision-Date: 2019-12-04 18:17+0100\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: es_ES\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 2.0.6\n"
19+
20+
#. module: stock_picking_return_refund_option
21+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
22+
msgid "Is Return"
23+
msgstr "Es devolución"
24+
25+
#. module: stock_picking_return_refund_option
26+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
27+
msgid "No Refund"
28+
msgstr "No abonar"
29+
30+
#. module: stock_picking_return_refund_option
31+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
32+
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
33+
msgid "Refund Options"
34+
msgstr "Opciones de devolución"
35+
36+
#. module: stock_picking_return_refund_option
37+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
38+
msgid "Stock Move"
39+
msgstr "Movimiento de stock"
40+
41+
#. module: stock_picking_return_refund_option
42+
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
43+
msgid ""
44+
"This field allow modify 'to_refund' field value in all stock moves from this "
45+
"picking after it has been confirmed.to_refund: set all stock moves to True "
46+
"value and recompute delivered quantities in sale order.\n"
47+
"no_refund: set all stock moves to False value and recompute delivered "
48+
"quantities in sale/purchase order."
49+
msgstr ""
50+
"Este campo permite modificar el valor del campo 'para abonar en el pedido' "
51+
"de todos los movimientos de stock del albarán después de que haya sido "
52+
"confirmado.\n"
53+
"Para abonar en el pedido: Actualiza todos los movimientos de stock con el "
54+
"valor a 'verdadero' y recalcula las unidades entregadas del pedido de "
55+
"venta.\n"
56+
"No abonar en el pedido: Actualiza todos los movimientos de stock con el "
57+
"valor a 'falso' y recalcula las unidades entregadas del pedido de venta."
58+
59+
#. module: stock_picking_return_refund_option
60+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
61+
msgid "To Refund"
62+
msgstr "Para abonar"
63+
64+
#. module: stock_picking_return_refund_option
65+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
66+
msgid "Transfer"
67+
msgstr "Transferir"
68+
69+
#~ msgid "Return Picking"
70+
#~ msgstr "Albarán de devolución"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_picking_return_refund_option
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-02-27 18:35+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: stock_picking_return_refund_option
20+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__is_return
21+
msgid "Is Return"
22+
msgstr "È un reso"
23+
24+
#. module: stock_picking_return_refund_option
25+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__no_refund
26+
msgid "No Refund"
27+
msgstr "Non rimborsato"
28+
29+
#. module: stock_picking_return_refund_option
30+
#: model:ir.model.fields,field_description:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
31+
#: model_terms:ir.ui.view,arch_db:stock_picking_return_refund_option.view_picking_form
32+
msgid "Refund Options"
33+
msgstr "Opzioni rimborso"
34+
35+
#. module: stock_picking_return_refund_option
36+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_move
37+
msgid "Stock Move"
38+
msgstr "Movimento di magazzino"
39+
40+
#. module: stock_picking_return_refund_option
41+
#: model:ir.model.fields,help:stock_picking_return_refund_option.field_stock_picking__to_refund_lines
42+
msgid ""
43+
"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"
44+
"no_refund: set all stock moves to False value and recompute delivered quantities in sale/purchase order."
45+
msgstr ""
46+
"Questo campo consente di modificare il valore del campo 'to_refund' in tutti "
47+
"i movimenti di magazzino da questo prelievo dopo che è stato confermato. "
48+
"To_refund: imposta il valore a True in tutti i movimenti di magazzino e "
49+
"ricalcola le quantità consegnate nell'ordine di vendita. \n"
50+
"No_refund: imposta il valore a False in tutti i movimenti di magazzino e "
51+
"ricalcola le quantità consegnate nell'ordine di vendita/acquisto."
52+
53+
#. module: stock_picking_return_refund_option
54+
#: model:ir.model.fields.selection,name:stock_picking_return_refund_option.selection__stock_picking__to_refund_lines__to_refund
55+
msgid "To Refund"
56+
msgstr "Da rimborsare"
57+
58+
#. module: stock_picking_return_refund_option
59+
#: model:ir.model,name:stock_picking_return_refund_option.model_stock_picking
60+
msgid "Transfer"
61+
msgstr "Trasferimento"

0 commit comments

Comments
 (0)