[IMP] sale: better invoice_status computation
[IMP] sale: better invoice_status computation

Works correctly on virtual records during onchanges, notably. Since the
data was obtained from a read_group using the ids of self, virtual
records never could find any of their data.

closes odoo/odoo#45264

Signed-off-by: Damien Bouvy (dbo) <26cc0816b78fc1f1d6597524ae2f7230dc232c77@odoo.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo