Skip to content

Browse fails on newer Odoo 18.3 #102

@MaartenUreel

Description

@MaartenUreel

After upgrade to Odoo 18.3, this code does not work anymore:

OdooPartner = odoo.env["res.partner"]
odoo_partners = OdooPartner.browse(partners.values_list("odoo_partner_id", flat=True))

Essentially the argument is a list of integers.

The error returned by Odoo:

odoorpc.error.RPCError: Expected singleton: res.partner(312, 77, 300, 318, 296, 65, 303, 107, 99, 108, 104, 115, 81, 64, 305, 247, 248, 210, 134, 91, 89, 179, 20, 320, 242, 299, 184, 126, 246, 256, 201, 169, 21, 251, 125, 86, 79, 122, 159, 114, 313, 98, 75, 109)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions