Before this commit it is technically possible for "return_picking_line" to be a recordset instead of a record. By taking the first element ([0]) we're sure it is always a record instead of a recordset to work with. closes odoo/odoo#82578 X-original-commit: 705e60a9531fe0b042fd32a5dfc934bede15558c Signed-off-by: William Henrotin (whe) <whe@odoo.com>