From d7338efbd066b857a682a1ae51550cbac5147d68 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 30 Jan 2017 22:54:49 +0100 Subject: [PATCH] FIX bug #252 backported from v10 to v9 --- .../report/aged_partner_balance.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/account_financial_report_qweb/report/aged_partner_balance.py b/account_financial_report_qweb/report/aged_partner_balance.py index 91bb88c0..53ef8834 100644 --- a/account_financial_report_qweb/report/aged_partner_balance.py +++ b/account_financial_report_qweb/report/aged_partner_balance.py @@ -318,6 +318,8 @@ INSERT INTO report_aged_partner_balance_qweb_line ( report_partner_id, + create_uid, + create_date, partner, amount_residual, current, @@ -329,6 +331,8 @@ INSERT INTO ) SELECT rp.id AS report_partner_id, + %s AS create_uid, + NOW() AS create_date, rp.name, SUM(rlo.amount_residual) AS amount_residual, SUM( @@ -407,6 +411,7 @@ GROUP BY """ query_inject_line_params = (self.date_at,) * 6 query_inject_line_params += ( + self.env.uid, self.open_items_id.id, self.id, ) @@ -434,6 +439,8 @@ INSERT INTO report_aged_partner_balance_qweb_move_line ( report_partner_id, + create_uid, + create_date, date, date_due, entry, @@ -451,6 +458,8 @@ INSERT INTO ) SELECT rp.id AS report_partner_id, + %s AS create_uid, + NOW() AS create_date, rlo.date, rlo.date_due, rlo.entry, @@ -521,6 +530,7 @@ AND ra.report_id = %s """ query_inject_move_line_params = (self.date_at,) * 6 query_inject_move_line_params += ( + self.env.uid, self.open_items_id.id, self.id, )