[FIX] purchase_stock: propagate PO line sequence to stock moves

The default order of the picking moves generated from a purchase order should be the same order as the purchase order lines.

Steps to reproduce:
- Create a purchase order with several purchase lines.
- Change the order of the purchase lines.
- Confirm the purchase order.
  => The moves of the picking don't maintain same order as set before.

closes odoo/odoo#95582

X-original-commit: c18b2ce767dd5a5b4dbe766b849b56243dffb723
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
Miquel Raïch
2022-07-08 14:34:10 +02:00
committed by William Henrotin
parent 40f4ea486b
commit a33df16130
+1
View File
@@ -537,6 +537,7 @@ class PurchaseOrderLine(models.Model):
'product_uom_qty': product_uom_qty,
'product_uom': product_uom.id,
'product_packaging_id': self.product_packaging_id.id,
'sequence': self.sequence,
}
@api.model