Browse Source

account_chart_report :

* CamelCase fixed
* back to the original name
* self.pool.get replaced
*  margins fixed
pull/2/head
Marc Cassuto 10 years ago
parent
commit
84341575a4
  1. 0
      account_chart_report/__init__.py
  2. 0
      account_chart_report/__openerp__.py
  3. 2
      account_chart_report/account_report.xml
  4. 0
      account_chart_report/i18n/account_chart_report.pot
  5. 0
      account_chart_report/i18n/fr.po
  6. 0
      account_chart_report/report/__init__.py
  7. 10
      account_chart_report/report/chart_of_accounts.py
  8. 8
      account_chart_report/report/chart_of_accounts.rml
  9. 0
      account_chart_report/wizard/__init__.py
  10. 4
      account_chart_report/wizard/account_report_chart_of_account.py
  11. 0
      account_chart_report/wizard/account_report_chart_of_account.xml
  12. BIN
      account_financial_report/i18n/es.mo

0
account_chart_report_rml/__init__.py → account_chart_report/__init__.py

0
account_chart_report_rml/__openerp__.py → account_chart_report/__openerp__.py

2
account_chart_report_rml/account_report.xml → 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"
/>

0
account_chart_report_rml/i18n/account_chart_report_rml.pot → account_chart_report/i18n/account_chart_report.pot

0
account_chart_report_rml/i18n/fr.po → account_chart_report/i18n/fr.po

0
account_chart_report_rml/report/__init__.py → account_chart_report/report/__init__.py

10
account_chart_report_rml/report/chart_of_accounts.py → 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,
)

8
account_chart_report_rml/report/chart_of_accounts.rml → account_chart_report/report/chart_of_accounts.rml

@ -1,8 +1,8 @@
<?xml version="1.0"?>
<document filename="Chart of accounts.pdf">
<template title="Account Balance" author="Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)" allowSplitting="20">
<template title="Account Balance" author="Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)" allowSplitting="1">
<pageTemplate id="first">
<frame id="first" x1="35.0" y1="35.0" width="525" height="772"/>
<frame id="first" x1="35.0" y1="35.0" width="650" height="772"/>
</pageTemplate>
</template>
<stylesheet>
@ -28,7 +28,7 @@
<images/>
</stylesheet>
<story>
<blockTable colWidths="525.0" style="Table_Tilte_Table">
<blockTable colWidths="650.0" style="Table_Tilte_Table">
<tr>
<td>
<para style="P15">Chart of accounts</para>
@ -47,7 +47,7 @@
<para style="P11">
<font color="white"> </font>
</para>
<blockTable colWidths="80,340.0" style="Table2" repeatRows="1">
<blockTable colWidths="70,450" style="Table2" repeatRows="1">
<tr noRowsplits="1">
<td><para style="P12a">Code</para></td>
<td><para style="P12a">Account</para></td>

0
account_chart_report_rml/wizard/__init__.py → account_chart_report/wizard/__init__.py

4
account_chart_report_rml/wizard/account_report_chart_of_account.py → account_chart_report/wizard/account_report_chart_of_account.py

@ -23,14 +23,14 @@
from openerp.osv import fields, orm
class chart_of_account_report(orm.TransientModel):
class ChartOfAccountsReport(orm.TransientModel):
_name = 'account.print.chart.accounts.report'
_description = 'Chart of accounts Report'
domain_char_account = [('parent_id', '=', False)]
_columns = {
'chart_account_id': fields.many2one('account.account',
'Chart of Account',
'Chart of Accounts',
help='Select Charts of Accounts',
required=True,
domain=domain_char_account),

0
account_chart_report_rml/wizard/account_report_chart_of_account.xml → account_chart_report/wizard/account_report_chart_of_account.xml

BIN
account_financial_report/i18n/es.mo

Loading…
Cancel
Save