Skip to content

search argument count #4

@houzefa-abba

Description

@houzefa-abba

Since odoo/odoo@7e6cff5#diff-7144f88ea32f36feb17ce1b8dda7dee1631f5ada34075414587df3948c6b3d1bR1477 the search method takes 1 less argument

This code uses lots of patterns such as :

            if self.execute_odoo('ir.model.data', 'search',
                                 [[('module', '=', module), ('name', '=', name)], 0, 0, "id", False],
                                 {'context': config_context}):

which aside from missing some abstraction layers, send offset/limit/etc arguments as positional instead of sending them as keywords; whereas Odoo defines them as keyword arguments.

The last one, False in this case, has been removed in Odoo 17

These code patterns need rework, and at the very least False has to be removed for compat with Odoo 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions