Skip to content
Snippets Groups Projects
Commit 9b0cac0a authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[FIX] account_followup: total in foreign currency displayed in the right...

[FIX] account_followup: total in foreign currency displayed in the right currency instead of company currency
parent 8dc8302d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment