[FIX] account_followup: total in foreign currency displayed in the right currency instead of company currency

This commit is contained in:
qdp-odoo 2014-08-11 15:23:05 +02:00
parent 8dc8302dad
commit 9b0cac0aa0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class report_rappel(report_sxw.rml_parse):
}
lines_per_currency[currency].append(line_data)
return [{'line': lines} for lines in lines_per_currency.values()]
return [{'line': lines, 'currency': currency} for currency, lines in lines_per_currency.items()]
def _get_text(self, stat_line, followup_id, context=None):
context = dict(context or {}, lang=stat_line.partner_id.lang)

View File

@ -47,7 +47,7 @@
</table>
<t t-set="total" t-value="reduce(lambda x,y: x+y['balance'], cur_lines['line'], 0.00)"/>
<p>Total: <span t-esc="formatLang(total, currency_obj=res_company.currency_id)"/></p>
<p>Total: <span t-esc="formatLang(total, currency_obj=cur_lines['currency'])"/></p>
</t>
</div>
</t>