Skip to content

Commit

Permalink
remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jojolb committed Feb 23, 2024
1 parent c5badea commit 1b866fb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lcc_stats_api/services/private_stats_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,6 @@ def get(self, stats_filter: StatsFilter) -> CurrencyStats:
Get a partner MLCC stats.
"""

# # Check that user is accessing its own data
# user_api_key = request.httprequest.headers["Api-Key"]
# user = (
# self.env["auth.api.key"]
# .sudo()
# .search([("key", "=", user_api_key)], limit=1)
# )
# partner = (
# self.env["res.partner"]
# .sudo()
# .search([("odoo_user_id", "=", user.user_id.id)])
# )
# if id != partner.id and id != partner.public_profile_id.id:
# raise AccessError(
# f"{partner.name} not allowed to access data of partner ID {id}"
# )

# Get currency stats based on partner's invoices
currency_stats: CurrencyStats = self.env["account.invoice"].get_mlcc_stats(
stats_filter
Expand Down

0 comments on commit 1b866fb

Please sign in to comment.