Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][IMP] product_supplierinfo_for_customer: change _name_search product restrictions #1821

Open
wants to merge 2 commits into
base: 17.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions product_supplierinfo_for_customer/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
limit = (limit - res_ids_len) if limit else False
if (
not name
and limit
or not self._context.get("partner_id")
or res_ids_len >= limit
or (limit and res_ids_len >= limit)
):
return res_ids
limit -= res_ids_len
if limit:
limit -= res_ids_len

Check warning on line 34 in product_supplierinfo_for_customer/models/product_product.py

View check run for this annotation

Codecov / codecov/patch

product_supplierinfo_for_customer/models/product_product.py#L34

Added line #L34 was not covered by tests
customerinfo_ids = self.env["product.customerinfo"]._search(
[
("partner_id", "=", self._context.get("partner_id")),
Expand Down
Loading