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
2023-02-22 16:59:43 +01:00
2023-08-11 10:37:24 +00:00
2022-12-19 15:33:56 +00:00
2023-03-14 15:26:50 +00:00
2022-12-19 15:33:57 +00:00
2021-10-17 17:04:22 +02:00
2022-03-31 17:27:50 +02:00
2021-10-17 17:04:22 +02:00
2022-12-09 17:00:34 +01:00
2021-10-17 17:04:22 +02:00
2023-02-22 16:59:43 +01:00
2021-10-17 17:04:22 +02:00
2022-12-09 17:00:34 +01:00
2021-10-17 17:04:22 +02:00
2023-07-03 08:29:01 +00:00

Runboat Pre-commit Status Build Status codecov Translation Status

rma

TODO: add repo description.

Available addons

addon version maintainers summary
product_warranty 15.0.1.0.1 osi-scampbell max3903 Product Warranty
rma 15.0.1.1.3 ernestotejeda Return Merchandise Authorization (RMA)
rma_delivery 15.0.1.0.0 chienandalu Allow to choose a default delivery carrier for returns
rma_sale 15.0.1.1.0 ernestotejeda Sale Order - Return Merchandise Authorization (RMA)
rma_sale_mrp 15.0.1.0.1 chienandalu Allow doing RMAs from MRP kits
stock_production_lot_warranty 15.0.1.1.0 osi-scampbell max3903 Add warranty date to stock production lot
website_rma 15.0.1.0.0 ernestotejeda Return Merchandise Authorization (RMA)

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


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.

Description
Odoo for Return Merchandise Authorization (RMA)
Readme 19 MiB
Languages
Python 68.3%
HTML 29.4%
JavaScript 2.3%