[FIX] account_followup: total in foreign currency displayed in the right currency instead of company currency
This commit is contained in:
parent
8dc8302dad
commit
9b0cac0aa0
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue