Browse Source

Merge pull request #54 from JehoG/8.0

Migration of account_chart_report to V8
pull/59/head
Pedro M. Baeza 10 years ago
parent
commit
364f041914
  1. 17
      account_chart_report/README.rst
  2. 0
      account_chart_report/__init__.py
  3. 15
      account_chart_report/__openerp__.py
  4. 0
      account_chart_report/account_report.xml
  5. 0
      account_chart_report/i18n/account_chart_report.pot
  6. 0
      account_chart_report/i18n/fr.po
  7. 0
      account_chart_report/report/__init__.py
  8. 0
      account_chart_report/report/chart_of_accounts.py
  9. 0
      account_chart_report/report/chart_of_accounts.rml
  10. 0
      account_chart_report/wizard/__init__.py
  11. 24
      account_chart_report/wizard/account_report_chart_of_account.py
  12. 0
      account_chart_report/wizard/account_report_chart_of_account.xml

17
account_chart_report/README.rst

@ -0,0 +1,17 @@
Print chart of accounts
=======================
This module add the menu Accounting \ Charts \ Print chart of Accounts
and allow to print the selected chart of accounts.
This module is based on the old RML engine report.
Credits
=======
Contributors
------------
* Marc Cassuto (marc.cassuto@savoirfairelinux.com)
* Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)
* Guillaume Auger (guillaume.auger@savoirfairelinux.com)

0
__unported__/account_chart_report/__init__.py → account_chart_report/__init__.py

15
__unported__/account_chart_report/__openerp__.py → account_chart_report/__openerp__.py

@ -25,19 +25,6 @@
'name': 'Print chart of accounts',
'version': '1.0',
'category': 'Reports/pdf',
'description': """Print chart of accounts.
This module add the menu Accounting \ ChartsPrint chart of Accounts
and allow to print the selected chart of accounts.
This module is based on the old RML engine report.
Contributors
------------
* Marc Cassuto (marc.cassuto@savoirfairelinux.com)
* Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)
""",
'author': 'Savoir-faire Linux',
'website': 'http://www.savoirfairelinux.com',
'depends': [
@ -48,6 +35,6 @@ Contributors
'account_report.xml',
'wizard/account_report_chart_of_account.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
}

0
__unported__/account_chart_report/account_report.xml → account_chart_report/account_report.xml

0
__unported__/account_chart_report/i18n/account_chart_report.pot → account_chart_report/i18n/account_chart_report.pot

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

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

0
__unported__/account_chart_report/report/chart_of_accounts.py → account_chart_report/report/chart_of_accounts.py

0
__unported__/account_chart_report/report/chart_of_accounts.rml → account_chart_report/report/chart_of_accounts.rml

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

24
__unported__/account_chart_report/wizard/account_report_chart_of_account.py → account_chart_report/wizard/account_report_chart_of_account.py

@ -20,25 +20,23 @@
#
##############################################################################
from openerp.osv import fields, orm
from openerp import fields, models, api
class ChartOfAccountsReport(orm.TransientModel):
class ChartOfAccountsReport(models.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 Accounts',
help='Select Charts of Accounts',
required=True,
domain=domain_char_account),
}
chart_account_id = fields.Many2one(
'account.account',
'Chart of Accounts',
help='Select Charts of Accounts',
required=True,
domain=([('parent_id', '=', False)]))
def print_report(self, cr, uid, ids, data, context=None):
res = self.read(cr, uid, ids, context=context)[0]
account_id = res["chart_account_id"][0]
@api.multi
def print_report(self, data):
account_id = self.chart_account_id.id
data["form"] = {"id_account": account_id}
return {
'type': 'ir.actions.report.xml',

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

Loading…
Cancel
Save