Commit Graph

12 Commits

Author SHA1 Message Date
Pedro M. Baeza
944f9686cc [FIX+IMP] rma_sale: Link invoice/move line with origin sale line when refunding
Steps to reproduce:

- Create a sales order with an storable product with invoicing policy
  on delivered quantities.
- Confirm it and deliver the product.
- Invoice the order.
- Do an RMA, receive it, and refund it.

Result: the delivered quantity is 1 instead of 0.

This is because the refund generated from the RMA is not linked to
sales order line, nor the RMA reception move. This is done because
other operations are performed:

- Be replaced.
- Be changed by other product.

And we don't also want that meanwhile the RMA is being performed, the
sales order is pending to invoice.

But when the refund has been done, we have it clear, so let's link both
and have sales statistics correct.

FIX: We don't link the refund line with the sales order if the RMA
quantity is not the whole original move quantity. Otherwise, we will
have incoherente delivered/invoiced quantities on the sales order.

TT41645
2023-08-16 12:48:15 +02:00
Víctor Martínez
2378127a7b [IMP] rma_sale: Improve tests
TT37303
2022-10-10 15:44:51 +02:00
Víctor Martínez
1db6a8cf59 [FIX] rma_sale: Allow to request a rma from portal order page only with portal user permission 2022-10-04 08:17:26 +02:00
Alex Vining
eafdd41634 [MIG] rma_sale: Migration to 15.0 2022-09-21 14:57:03 -04:00
Chafique
4c297f8313 [14.0][MIG] rma_sale module 2022-09-20 08:16:11 -04:00
Chafique
a384f0e382 [IMP] rma_sale: black, isort, prettier 2022-09-20 08:16:11 -04:00
david
8730ce1f8d [FIX] rma_sale: recurrent RMA
If a product was already in an RMA in the past, we should be able to
place another RMA in the future.
2022-09-20 08:16:11 -04:00
Ernesto Tejeda
d75238e77c [MIG] rma_sale: Migration to 13.0 2022-09-20 08:16:11 -04:00
Ernesto Tejeda
55e92a38ee [IMP] rma_sale: black, isort, prettier 2022-09-20 08:16:11 -04:00
Pedro M. Baeza
61dcb8796f [FIX+IMP] rma_sale: Proper dependency + propagate salesman
- Proper dependency is `sale_stock`, not `sale`, as we are using some fields added
  by this module.
- Propagate salesman from sales order when available.

TT25525

rma_sale 12.0.1.4.1
2022-09-20 08:16:11 -04:00
Ernesto Tejeda
5212ab6905 [FIX] rma_sale: fix expected single record error in tests.
rma_sale 12.0.1.0.1

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: rma-12.0/rma-12.0-rma_sale
Translate-URL: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma_sale/
2022-09-20 08:16:11 -04:00
Ernesto Tejeda
245412832d [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2022-09-20 08:16:11 -04:00