Skip to content

Commit

Permalink
[FIX] base_multi_company: Applying the correct parameters in the sear…
Browse files Browse the repository at this point in the history
…ch_read() method
  • Loading branch information
victoralmau committed Nov 20, 2024
1 parent 970fd47 commit 4cb4c91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions base_multi_company/models/multi_company_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ def _name_search(self, name, domain=None, operator="ilike", limit=None, order=No
)

@api.model
def search_read(self, domain=None, fields=None, offset=0, limit=None, order=None):
def search_read(
self, domain=None, fields=None, offset=0, limit=None, order=None, **read_kwargs
):
new_domain = self._patch_company_domain(domain)
return super().search_read(new_domain, fields, offset, limit, order)
return super().search_read(
new_domain, fields, offset, limit, order, **read_kwargs
)

@api.model
def search(self, domain, offset=0, limit=None, order=None):
Expand Down

0 comments on commit 4cb4c91

Please sign in to comment.