Browse Source

HACK: disable super expensive query to get invoice total per supplier

master
Harald Welte 8 months ago
parent
commit
34f009a5ce
  1. 6
      addons/account/partner.py

6
addons/account/partner.py

@ -278,8 +278,10 @@ class res_partner(osv.osv):
# price_total is in the currency with rate = 1
# total_invoice should be displayed in the current user's currency
cr.execute(query, where_clause_params + [user_currency_id])
result[partner_id] = cr.fetchone()[0]
# HACK: Avoid super expensive query taking 290s, see https://projects.sysmocom.de/issues/5379
#cr.execute(query, where_clause_params + [user_currency_id])
#result[partner_id] = cr.fetchone()[0]
result[partner_id] = 0
return result

Loading…
Cancel
Save