Wrong product invoices when changing product of stock move
In a similar scenario as #6839 (closed), when the user change the product of stock move linked to purchase or sale, the invoice generated still uses the product of the purchase or sale.
I do not think it is good for statistics nor coherence of the link between the invoice line and the stock moves.
Also the customer will receive a delivery note with different products as on the invoice.
So I think the sale and purchase should try to use, in case the invoice method is based on shipment, the product of the stock move. But I think it should keep the same taxes and unit price because those are part of the agreement. It is up to the user to change products with equivalent.