mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
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
8 lines
214 B
Python
8 lines
214 B
Python
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from . import account_move
|
|
from . import res_company
|
|
from . import res_config_settings
|
|
from . import rma
|
|
from . import sale
|
|
from . import stock_move
|