From 4d632363b2f3e7141553383695c43045488fa8b3 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 30 Jan 2017 00:49:49 +0100 Subject: [PATCH] Fix bug #252 : generate create_uid and create_date columns in table report_aged_partner_balance_qweb_line --- account_financial_report_qweb/report/aged_partner_balance.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/account_financial_report_qweb/report/aged_partner_balance.py b/account_financial_report_qweb/report/aged_partner_balance.py index bebd4bfa..0c19eb18 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, )