This commit fixes a ValueError that occurred when an order contained two or more order lines with kits. The error was caused by the 'self.qty' expression, which failed when 'self' was a recordset. The code has been updated to correctly handle multiple order lines with kits. opw-3708950 closes odoo/odoo#152053 X-original-commit: 668933002e2912f8df531b065f81777b2b491514 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>