← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~camptocamp/account-financial-report/7.0-export-add-statement into lp:account-financial-report

 

Guewen Baconnier @ Camptocamp has proposed merging lp:~camptocamp/account-financial-report/7.0-export-add-statement into lp:account-financial-report.

Requested reviews:
  Account Report Core Editors (account-report-core-editor)

For more details, see:
https://code.launchpad.net/~camptocamp/account-financial-report/7.0-export-add-statement/+merge/226440

Add name of the bank statement on export of account move lines
-- 
https://code.launchpad.net/~camptocamp/account-financial-report/7.0-export-add-statement/+merge/226440
Your team Account Report Core Editors is requested to review the proposed merge of lp:~camptocamp/account-financial-report/7.0-export-add-statement into lp:account-financial-report.
=== modified file 'account_export_csv/wizard/account_export_csv.py'
--- account_export_csv/wizard/account_export_csv.py	2013-09-13 11:25:19 +0000
+++ account_export_csv/wizard/account_export_csv.py	2014-07-11 11:50:06 +0000
@@ -282,6 +282,7 @@
                 _(u'TAX CODE CODE'),
                 _(u'TAX CODE NAME'),
                 _(u'TAX AMOUNT'),
+                _(u'BANK STATEMENT'),
                 ]
 
 
@@ -318,7 +319,9 @@
           account_fiscalyear.name as fiscal_year,
           account_tax_code.code AS aml_tax_code_code,
           account_tax_code.name AS aml_tax_code_name,
-          account_move_line.tax_amount AS aml_tax_amount
+          account_move_line.tax_amount AS aml_tax_amount,
+
+          account_bank_statement.name AS bank_statement
         FROM
           public.account_move_line
           JOIN account_account on (account_account.id=account_move_line.account_id)
@@ -332,6 +335,7 @@
           LEFT JOIN account_tax on (account_tax.id=account_move_line.account_tax_id)
           LEFT JOIN account_tax_code on (account_tax_code.id=account_move_line.tax_code_id)
           LEFT JOIN account_analytic_account on (account_analytic_account.id=account_move_line.analytic_account_id)
+          LEFT JOIN account_bank_statement on (account_bank_statement.id=account_move_line.statement_id)
         WHERE account_period.id IN %(period_ids)s
         AND account_journal.id IN %(journal_ids)s
         ORDER BY account_move_line.date


Follow ups