ForgeFlow / stock-rma

Stock RMA
GNU Affero General Public License v3.0
38 stars 41 forks source link

[16] rma_sale : Always create rma line from sale line using stock move lines #510

Closed florian-dacosta closed 4 months ago

florian-dacosta commented 5 months ago

This way, we have the same way to create the rma lines, wether the tracking is active on the product or not. Also and mainly, it allows to create rma lines for the component of a KIT sale order line instead of the kit. When something is sent as a kit, the rma concerns usually only a part of it.

Maybe I could/should make it an option in the module rma_sale_mrp, so one could choose if the add from sale wizard create a line for the kit of for the components. There is a small hook _create_from_move_line which can be used for this purpose.

The main consequences of this PR then :

Please, let me know what you think @JordiBForgeFlow @AaronHForgeFlow

AaronHForgeFlow commented 5 months ago

I think both main consequences makes sense, the delivered products are the components of the kit not the kit itself.

AaronHForgeFlow commented 5 months ago

Hi @florian-dacosta I checked functionally and I think the change is good. I think that adding the option in the rma_sale_mrp module so user can decide if creating rma lines for the kit components or not is necessary.

florian-dacosta commented 4 months ago

Closing, in favor of https://github.com/ForgeFlow/stock-rma/pull/525