|
@ -318,6 +318,8 @@ INSERT INTO |
|
|
report_aged_partner_balance_qweb_line |
|
|
report_aged_partner_balance_qweb_line |
|
|
( |
|
|
( |
|
|
report_partner_id, |
|
|
report_partner_id, |
|
|
|
|
|
create_uid, |
|
|
|
|
|
create_date, |
|
|
partner, |
|
|
partner, |
|
|
amount_residual, |
|
|
amount_residual, |
|
|
current, |
|
|
current, |
|
@ -329,6 +331,8 @@ INSERT INTO |
|
|
) |
|
|
) |
|
|
SELECT |
|
|
SELECT |
|
|
rp.id AS report_partner_id, |
|
|
rp.id AS report_partner_id, |
|
|
|
|
|
%s AS create_uid, |
|
|
|
|
|
NOW() AS create_date, |
|
|
rp.name, |
|
|
rp.name, |
|
|
SUM(rlo.amount_residual) AS amount_residual, |
|
|
SUM(rlo.amount_residual) AS amount_residual, |
|
|
SUM( |
|
|
SUM( |
|
@ -407,6 +411,7 @@ GROUP BY |
|
|
""" |
|
|
""" |
|
|
query_inject_line_params = (self.date_at,) * 6 |
|
|
query_inject_line_params = (self.date_at,) * 6 |
|
|
query_inject_line_params += ( |
|
|
query_inject_line_params += ( |
|
|
|
|
|
self.env.uid, |
|
|
self.open_items_id.id, |
|
|
self.open_items_id.id, |
|
|
self.id, |
|
|
self.id, |
|
|
) |
|
|
) |
|
|