The pop() method is not implemented for Odoo recordset. This commit replace it by a simple 'for' loop
6e8dff1952