Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ def search(self, args, offset=0, limit=None, order=None, count=False):
self.env.context.get("customerinfo")
and self._name == "product.supplierinfo"
Copy link
Member

@baguenth baguenth Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not just add a condition here like

and not count

to bypass the customer info logic, if count is true?

):
if count:
limit2 = (limit - res) if limit else limit
res2 = self.env["product.customerinfo"].search(
args, offset=offset, limit=limit2, order=order, count=count
)
return res + res2
limit2 = limit - len(res) if limit else limit
res2 = self.env["product.customerinfo"].search(
args, offset=offset, limit=limit2, order=order, count=count
Expand Down