Commit Graph

14 Commits

Author SHA1 Message Date
David
4c6dbd26b5 [MIG] rma_sale: sale portal
- Migrate bs4 to bs5
- Fix shipping address choice functionality
- Add tour for the user portal workflow
2023-09-02 14:23:36 +02:00
Pedro M. Baeza
54e08e856f [MIG] rma_sale: Migration to 16.0
- Standard procedure.
- Adapt to new `prepare_*_vals` methods.
- Renamed fields adaptation.
- Improved test coverage.

TT44214

s
2023-09-02 14:23:36 +02:00
Pedro M. Baeza
e1e1b7a0a6 [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-29 20:09:32 +02:00
Víctor Martínez
515f2af7b9 [IMP] rma_sale: Improve tests
TT37303
2023-08-29 20:05:20 +02:00
Víctor Martínez
4dce7e6b53 [FIX] rma_sale: Allow to request a rma from portal order page only with portal user permission 2023-08-29 20:05:20 +02:00
Alex Vining
efb0464833 [MIG] rma_sale: Migration to 15.0 2023-08-29 20:05:20 +02:00
Chafique
1b470773f9 [14.0][MIG] rma_sale module 2023-08-29 20:04:57 +02:00
Chafique
2cab64f4e7 [IMP] rma_sale: black, isort, prettier 2023-08-29 20:04:57 +02:00
david
12fd6cb814 [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.
2023-08-29 20:04:57 +02:00
Ernesto Tejeda
132f877db9 [MIG] rma_sale: Migration to 13.0 2023-08-29 20:04:45 +02:00
Ernesto Tejeda
1267c92b72 [IMP] rma_sale: black, isort, prettier 2023-08-29 20:01:04 +02:00
Pedro M. Baeza
bad96142e0 [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
2023-08-29 20:01:04 +02:00
Ernesto Tejeda
61e27881e1 [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/
2023-08-29 20:01:04 +02:00
Ernesto Tejeda
bf9003534e [ADD] rma_sale: new module
[UPD] Update rma_sale.pot

[ADD] icon.png
2023-08-29 20:01:04 +02:00