From 5411216a7661ff04a2e0c6d9ad7ef195bdb482ed Mon Sep 17 00:00:00 2001 From: hveficent Date: Thu, 5 Apr 2018 11:05:10 +0200 Subject: [PATCH] [FIX] add currency name in some trial balance functions --- account_financial_report_qweb/report/trial_balance.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/account_financial_report_qweb/report/trial_balance.py b/account_financial_report_qweb/report/trial_balance.py index 50e5b29c..4d68c31b 100644 --- a/account_financial_report_qweb/report/trial_balance.py +++ b/account_financial_report_qweb/report/trial_balance.py @@ -100,6 +100,7 @@ class TrialBalanceReportPartner(models.TransientModel): initial_balance = fields.Float(digits=(16, 2)) debit = fields.Float(digits=(16, 2)) credit = fields.Float(digits=(16, 2)) + currency_name = fields.Char() final_balance = fields.Float(digits=(16, 2)) @api.model @@ -230,7 +231,8 @@ INSERT INTO initial_balance, debit, credit, - final_balance + final_balance, + currency_name ) SELECT ra.id AS report_account_id, @@ -241,7 +243,8 @@ SELECT rpg.initial_balance AS initial_balance, rpg.final_debit - rpg.initial_debit AS debit, rpg.final_credit - rpg.initial_credit AS credit, - rpg.final_balance AS final_balance + rpg.final_balance AS final_balance, + rpg.currency_name AS currency_name FROM report_general_ledger_qweb_partner rpg INNER JOIN