Browse Source
[FIX] account_export_csv: pylint issues.
pull/315/head
Adrien Peiffer (ACSONE)
8 years ago
No known key found for this signature in database
GPG Key ID: D71294F474342C2
2 changed files with
17 additions and
17 deletions
-
account_export_csv/tests/test_account_export_csv.py
-
account_export_csv/wizard/account_export_csv.py
|
|
@ -39,4 +39,3 @@ class TestAccountExportCsv(TransactionCase): |
|
|
|
'date_end': self.report_date_end |
|
|
|
}) |
|
|
|
report_wizard.action_manual_export_journal_entries() |
|
|
|
|
|
|
@ -111,7 +111,8 @@ class AccountCSVExport(models.TransientModel): |
|
|
|
} |
|
|
|
|
|
|
|
def _get_header_account(self): |
|
|
|
return [_(u'CODE'), |
|
|
|
return [ |
|
|
|
_(u'CODE'), |
|
|
|
_(u'NAME'), |
|
|
|
_(u'DEBIT'), |
|
|
|
_(u'CREDIT'), |
|
|
@ -165,7 +166,8 @@ class AccountCSVExport(models.TransientModel): |
|
|
|
} |
|
|
|
|
|
|
|
def _get_header_analytic(self): |
|
|
|
return [_(u'ANALYTIC CODE'), |
|
|
|
return [ |
|
|
|
_(u'ANALYTIC CODE'), |
|
|
|
_(u'ANALYTIC NAME'), |
|
|
|
_(u'CODE'), |
|
|
|
_(u'ACCOUNT NAME'), |
|
|
@ -348,6 +350,5 @@ class AccountCSVExport(models.TransientModel): |
|
|
|
j_obj = self.env["account.journal"] |
|
|
|
journal_ids = j_obj.search([]).ids |
|
|
|
rows = itertools.chain((get_header_func(),), |
|
|
|
get_rows_func(journal_ids) |
|
|
|
) |
|
|
|
get_rows_func(journal_ids)) |
|
|
|
return rows |