[IMP] purchase: clarify code
[IMP] purchase: clarify code

The sum of list is confusing
Work with recordsets directly

Closes #17673
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo