HACK: disable super expensive query to get invoice total per supplier
This commit is contained in:
parent
efd655c0eb
commit
34f009a5ce
|
@ -278,8 +278,10 @@ class res_partner(osv.osv):
|
||||||
|
|
||||||
# price_total is in the currency with rate = 1
|
# price_total is in the currency with rate = 1
|
||||||
# total_invoice should be displayed in the current user's currency
|
# total_invoice should be displayed in the current user's currency
|
||||||
cr.execute(query, where_clause_params + [user_currency_id])
|
# HACK: Avoid super expensive query taking 290s, see https://projects.sysmocom.de/issues/5379
|
||||||
result[partner_id] = cr.fetchone()[0]
|
#cr.execute(query, where_clause_params + [user_currency_id])
|
||||||
|
#result[partner_id] = cr.fetchone()[0]
|
||||||
|
result[partner_id] = 0
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue