Skip to content

Commit

Permalink
FIX Muskathlon barometer to include only paid invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Mar 3, 2022
1 parent 490f558 commit d4759be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muskathlon/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _compute_amount_raised(self):
self.env.cr.execute("""
SELECT sum(il.price_subtotal) AS amount, il.user_id, il.event_id
FROM account_invoice_line il
WHERE il.state IN ('draft', 'open', 'paid')
WHERE il.state = 'paid'
AND il.account_id = 2775 -- Muskathlon event
AND il.user_id = ANY(%s)
AND il.event_id = ANY(%s)
Expand Down

0 comments on commit d4759be

Please sign in to comment.