[FIX] product_supplierinfo_for_customer: fix missing products in comodel search #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When searching for products in a comodel, the results are obtained via the
_name_search
method overproduct.product
. Currently, this search is not retrieving all matching results.This issue occurs because the parameters for the
_name_search
method changed in Odoo v17, and during the migration, this was not adapted. As a result, when the method is called, it only retrieves 100 results due to the default limit not being handled correctly.This commit updates the overridden
_name_search
method to match the new method signature in Odoo v17 and properly handle thelimit
parameter. This ensures that all matching products are returned during the search.