Browse Source

Refact and adding me to contributor

pull/54/head
Guillaume Auger 10 years ago
parent
commit
83abecc923
  1. 1
      account_chart_report/__openerp__.py
  2. 3
      account_chart_report/wizard/account_report_chart_of_account.py

1
account_chart_report/__openerp__.py

@ -36,6 +36,7 @@ Contributors
------------ ------------
* Marc Cassuto (marc.cassuto@savoirfairelinux.com) * Marc Cassuto (marc.cassuto@savoirfairelinux.com)
* Mathieu Benoit (mathieu.benoit@savoirfairelinux.com) * Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)
* Guillaume Auger (guillaume.auger@savoirfairelinux.com)
""", """,
'author': 'Savoir-faire Linux', 'author': 'Savoir-faire Linux',

3
account_chart_report/wizard/account_report_chart_of_account.py

@ -35,8 +35,7 @@ class ChartOfAccountsReport(models.TransientModel):
@api.multi @api.multi
def print_report(self, data): def print_report(self, data):
res = self.read()[0]
account_id = res["chart_account_id"][0]
account_id = self.chart_account_id.id
data["form"] = {"id_account": account_id} data["form"] = {"id_account": account_id}
return { return {
'type': 'ir.actions.report.xml', 'type': 'ir.actions.report.xml',

Loading…
Cancel
Save