This code must be removed from addons/base/res/res_currency.py
(remove the account arg also)
2 if account and (account.currency_mode=='average') and account.currency_id:
2 q = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
2 cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \
2 'where l.currency_id=%s and l.account_id=%s and '+q, (account.currency_id.id,account.id,))
2 tot1,tot2 = cr.fetchone()
This code must be removed from addons/ base/res/ res_currency. py
(remove the account arg also)
2 if account and (account. currency_ mode==' average' ) and account. currency_ id: get('account. move.line' )._query_ get(cr, uid, context=context) credit) ,sum(amount_ currency) from account_move_line l ' \ currency_ id.id,account. id,))
2 q = self.pool.
2 cr.execute('select sum(debit-
2 'where l.currency_id=%s and l.account_id=%s and '+q, (account.
2 tot1,tot2 = cr.fetchone()