From 84341575a45cf76bdfe6a1eace3d782b461b7bab Mon Sep 17 00:00:00 2001 From: Marc Cassuto Date: Sat, 2 Aug 2014 22:12:51 -0400 Subject: [PATCH] account_chart_report : * CamelCase fixed * back to the original name * self.pool.get replaced * margins fixed --- .../__init__.py | 0 .../__openerp__.py | 0 .../account_report.xml | 2 +- .../i18n/account_chart_report.pot | 0 .../i18n/fr.po | 0 .../report/__init__.py | 0 .../report/chart_of_accounts.py | 10 +++++----- .../report/chart_of_accounts.rml | 8 ++++---- .../wizard/__init__.py | 0 .../wizard/account_report_chart_of_account.py | 4 ++-- .../wizard/account_report_chart_of_account.xml | 0 account_financial_report/i18n/es.mo | Bin 8893 -> 0 bytes 12 files changed, 12 insertions(+), 12 deletions(-) rename {account_chart_report_rml => account_chart_report}/__init__.py (100%) rename {account_chart_report_rml => account_chart_report}/__openerp__.py (100%) rename {account_chart_report_rml => account_chart_report}/account_report.xml (81%) rename account_chart_report_rml/i18n/account_chart_report_rml.pot => account_chart_report/i18n/account_chart_report.pot (100%) rename {account_chart_report_rml => account_chart_report}/i18n/fr.po (100%) rename {account_chart_report_rml => account_chart_report}/report/__init__.py (100%) rename {account_chart_report_rml => account_chart_report}/report/chart_of_accounts.py (88%) rename {account_chart_report_rml => account_chart_report}/report/chart_of_accounts.rml (91%) rename {account_chart_report_rml => account_chart_report}/wizard/__init__.py (100%) rename {account_chart_report_rml => account_chart_report}/wizard/account_report_chart_of_account.py (94%) rename {account_chart_report_rml => account_chart_report}/wizard/account_report_chart_of_account.xml (100%) delete mode 100644 account_financial_report/i18n/es.mo diff --git a/account_chart_report_rml/__init__.py b/account_chart_report/__init__.py similarity index 100% rename from account_chart_report_rml/__init__.py rename to account_chart_report/__init__.py diff --git a/account_chart_report_rml/__openerp__.py b/account_chart_report/__openerp__.py similarity index 100% rename from account_chart_report_rml/__openerp__.py rename to account_chart_report/__openerp__.py diff --git a/account_chart_report_rml/account_report.xml b/account_chart_report/account_report.xml similarity index 81% rename from account_chart_report_rml/account_report.xml rename to account_chart_report/account_report.xml index 01f277f6..b0f4d55d 100644 --- a/account_chart_report_rml/account_report.xml +++ b/account_chart_report/account_report.xml @@ -7,7 +7,7 @@ menu="False" model="account.account" name="account.print.chart" - rml="account_chart_report_rml/report/chart_of_accounts.rml" + rml="account_chart_report/report/chart_of_accounts.rml" string="Print chart account" report_type="pdf" /> diff --git a/account_chart_report_rml/i18n/account_chart_report_rml.pot b/account_chart_report/i18n/account_chart_report.pot similarity index 100% rename from account_chart_report_rml/i18n/account_chart_report_rml.pot rename to account_chart_report/i18n/account_chart_report.pot diff --git a/account_chart_report_rml/i18n/fr.po b/account_chart_report/i18n/fr.po similarity index 100% rename from account_chart_report_rml/i18n/fr.po rename to account_chart_report/i18n/fr.po diff --git a/account_chart_report_rml/report/__init__.py b/account_chart_report/report/__init__.py similarity index 100% rename from account_chart_report_rml/report/__init__.py rename to account_chart_report/report/__init__.py diff --git a/account_chart_report_rml/report/chart_of_accounts.py b/account_chart_report/report/chart_of_accounts.py similarity index 88% rename from account_chart_report_rml/report/chart_of_accounts.py rename to account_chart_report/report/chart_of_accounts.py index e13cdad7..1d99a1f9 100644 --- a/account_chart_report_rml/report/chart_of_accounts.py +++ b/account_chart_report/report/chart_of_accounts.py @@ -23,11 +23,11 @@ from openerp.report import report_sxw -class account_char(report_sxw.rml_parse): +class AccountChar(report_sxw.rml_parse): _name = 'report.account.print.chart' def __init__(self, cr, uid, name, context=None): - super(account_char, self).__init__(cr, uid, name, context=context) + super(AccountChar, self).__init__(cr, uid, name, context=context) self.localcontext.update({ "get_lst_account": self._get_lst_account, "cr": cr, @@ -36,7 +36,7 @@ class account_char(report_sxw.rml_parse): }) def _get_lst_account(self, cr, uid, account_id, context): - account_obj = self.pool.get("account.account") + account_obj = self.pool['account.account'] actual_account = account_obj.browse(cr, uid, account_id, context=context) lst_account = [] @@ -55,6 +55,6 @@ class account_char(report_sxw.rml_parse): report_sxw.report_sxw( 'report.account.print.chart', 'account.account', - 'account_chart_report_rml/report/chart_of_accounts.rml', - parser=account_char, + 'account_chart_report/report/chart_of_accounts.rml', + parser=AccountChar, ) diff --git a/account_chart_report_rml/report/chart_of_accounts.rml b/account_chart_report/report/chart_of_accounts.rml similarity index 91% rename from account_chart_report_rml/report/chart_of_accounts.rml rename to account_chart_report/report/chart_of_accounts.rml index da8ac8bd..3beb5b47 100644 --- a/account_chart_report_rml/report/chart_of_accounts.rml +++ b/account_chart_report/report/chart_of_accounts.rml @@ -1,8 +1,8 @@ -