|
|
@ -413,7 +413,7 @@ SELECT |
|
|
|
NOW() AS create_date, |
|
|
|
a.id AS account_id, |
|
|
|
a.code, |
|
|
|
a.name, |
|
|
|
COALESCE(tr.value, a.name) AS name, |
|
|
|
COALESCE(i.debit, 0.0) AS initial_debit, |
|
|
|
COALESCE(i.credit, 0.0) AS initial_credit, |
|
|
|
COALESCE(i.balance, 0.0) AS initial_balance, |
|
|
@ -427,6 +427,11 @@ LEFT JOIN |
|
|
|
initial_sum_amounts i ON a.id = i.account_id |
|
|
|
LEFT JOIN |
|
|
|
final_sum_amounts f ON a.id = f.account_id |
|
|
|
LEFT JOIN |
|
|
|
ir_translation tr ON a.id = tr.res_id |
|
|
|
AND tr.lang = %s |
|
|
|
AND tr.type = 'model' |
|
|
|
AND tr.name = 'account.account,name' |
|
|
|
WHERE |
|
|
|
( |
|
|
|
i.debit IS NOT NULL AND i.debit != 0 |
|
|
@ -492,6 +497,7 @@ AND |
|
|
|
query_inject_account_params += ( |
|
|
|
self.id, |
|
|
|
self.env.uid, |
|
|
|
self.env.lang, |
|
|
|
) |
|
|
|
self.env.cr.execute(query_inject_account, query_inject_account_params) |
|
|
|
|
|
|
|