Skip to content

Commit

Permalink
Removed offset in search_count
Browse files Browse the repository at this point in the history
Co-authored-by: Edwin N Gonzales <gonzalesedwin1123>
  • Loading branch information
mkumar-02 committed Apr 19, 2024
1 parent d5ba689 commit e5638db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2p_programs/models/cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_entitlements(
domain += [("state", "in", state)]

if count:
return self.env["g2p.cycle.membership"].search_count(domain, offset=offset, limit=limit)
return self.env["g2p.cycle.membership"].search_count(domain, limit=limit)
return self.env[entitlement_model].search(domain, offset=offset, limit=limit, order=order)

# @api.model
Expand Down

0 comments on commit e5638db

Please sign in to comment.