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 @@ -