[FIX] purchase: Fix "ProgrammingError: can't adapt type 'res.company'"
[FIX] purchase: Fix "ProgrammingError: can't adapt type 'res.company'"

An id should be passed instead of a record.

closes odoo/odoo#53857

X-original-commit: 061fbd2c1b790d4e87e1f099eb36ab1313fc8ae5
Signed-off-by: oco-odoo <15533318955789ab09e4c2224ebf367eff32f177@users.noreply.github.com>

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