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