Browse Source

Merge pull request #240 from acsone/10-mig-account_financial_report_qweb-ape

Migration of account_financial_report_qweb to 10.0
pull/264/head
Yannick Vaucher 8 years ago
committed by GitHub
parent
commit
3d27a69ea0
  1. 5
      account_financial_report_qweb/__manifest__.py
  2. 2
      account_financial_report_qweb/models/account.py
  3. 2
      account_financial_report_qweb/report/abstract_report_xlsx.py
  4. 4
      account_financial_report_qweb/report/aged_partner_balance.py
  5. 4
      account_financial_report_qweb/report/aged_partner_balance_xlsx.py
  6. 4
      account_financial_report_qweb/report/general_ledger.py
  7. 4
      account_financial_report_qweb/report/general_ledger_xlsx.py
  8. 4
      account_financial_report_qweb/report/open_items.py
  9. 4
      account_financial_report_qweb/report/open_items_xlsx.py
  10. 4
      account_financial_report_qweb/report/trial_balance.py
  11. 4
      account_financial_report_qweb/report/trial_balance_xlsx.py
  12. 4
      account_financial_report_qweb/tests/abstract_test.py
  13. 2
      account_financial_report_qweb/wizard/aged_partner_balance_wizard.py
  14. 2
      account_financial_report_qweb/wizard/general_ledger_wizard.py
  15. 2
      account_financial_report_qweb/wizard/open_items_wizard.py
  16. 2
      account_financial_report_qweb/wizard/trial_balance_wizard.py
  17. 1
      setup/account_financial_report_qweb/odoo/__init__.py
  18. 1
      setup/account_financial_report_qweb/odoo/addons/__init__.py
  19. 1
      setup/account_financial_report_qweb/odoo/addons/account_financial_report_qweb
  20. 6
      setup/account_financial_report_qweb/setup.py

5
account_financial_report_qweb/__manifest__.py

@ -5,7 +5,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'QWeb Financial Reports',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Reporting',
'summary': 'OCA Financial Reports',
'author': 'Camptocamp SA,'
@ -15,7 +15,6 @@
"website": "https://odoo-community.org/",
'depends': [
'account',
'account_full_reconcile',
'date_range',
'account_fiscal_year',
'report_xlsx',
@ -37,7 +36,7 @@
],
'test': [
],
'installable': False,
'installable': True,
'application': True,
'auto_install': False,
'license': 'AGPL-3',

2
account_financial_report_qweb/models/account.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2011 Guewen Baconnier (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-
from openerp import models, fields
from odoo import models, fields
class AccountAccount(models.Model):

2
account_financial_report_qweb/report/abstract_report_xlsx.py

@ -5,7 +5,7 @@
from cStringIO import StringIO
import xlsxwriter
from openerp.addons.report_xlsx.report.report_xlsx import ReportXlsx
from odoo.addons.report_xlsx.report.report_xlsx import ReportXlsx
class AbstractReportXslx(ReportXlsx):

4
account_financial_report_qweb/report/aged_partner_balance.py

@ -2,7 +2,7 @@
# © 2016 Julien Coux (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
from odoo import models, fields, api
class AgedPartnerBalanceReport(models.TransientModel):
@ -194,7 +194,7 @@ class AgedPartnerBalanceReportCompute(models.TransientModel):
else:
report_name = 'account_financial_report_qweb.' \
'report_aged_partner_balance_qweb'
return self.env['report'].get_action(records=self,
return self.env['report'].get_action(docids=self.ids,
report_name=report_name)
def _prepare_report_open_items(self):

4
account_financial_report_qweb/report/aged_partner_balance_xlsx.py

@ -4,8 +4,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import abstract_report_xlsx
from openerp.report import report_sxw
from openerp import _
from odoo.report import report_sxw
from odoo import _
class AgedPartnerBalanceXslx(abstract_report_xlsx.AbstractReportXslx):

4
account_financial_report_qweb/report/general_ledger.py

@ -2,7 +2,7 @@
# © 2016 Julien Coux (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class GeneralLedgerReport(models.TransientModel):
@ -205,7 +205,7 @@ class GeneralLedgerReportCompute(models.TransientModel):
else:
report_name = 'account_financial_report_qweb.' \
'report_general_ledger_qweb'
return self.env['report'].get_action(records=self,
return self.env['report'].get_action(docids=self.ids,
report_name=report_name)
@api.multi

4
account_financial_report_qweb/report/general_ledger_xlsx.py

@ -5,8 +5,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import abstract_report_xlsx
from openerp.report import report_sxw
from openerp import _
from odoo.report import report_sxw
from odoo import _
class GeneralLedgerXslx(abstract_report_xlsx.AbstractReportXslx):

4
account_financial_report_qweb/report/open_items.py

@ -2,7 +2,7 @@
# © 2016 Julien Coux (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api, _
from odoo import models, fields, api, _
class OpenItemsReport(models.TransientModel):
@ -150,7 +150,7 @@ class OpenItemsReportCompute(models.TransientModel):
else:
report_name = 'account_financial_report_qweb.' \
'report_open_items_qweb'
return self.env['report'].get_action(records=self,
return self.env['report'].get_action(docids=self.ids,
report_name=report_name)
@api.multi

4
account_financial_report_qweb/report/open_items_xlsx.py

@ -4,8 +4,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import abstract_report_xlsx
from openerp.report import report_sxw
from openerp import _
from odoo.report import report_sxw
from odoo import _
class OpenItemsXslx(abstract_report_xlsx.AbstractReportXslx):

4
account_financial_report_qweb/report/trial_balance.py

@ -2,7 +2,7 @@
# © 2016 Julien Coux (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
from odoo import models, fields, api
class TrialBalanceReport(models.TransientModel):
@ -130,7 +130,7 @@ class TrialBalanceReportCompute(models.TransientModel):
else:
report_name = 'account_financial_report_qweb.' \
'report_trial_balance_qweb'
return self.env['report'].get_action(records=self,
return self.env['report'].get_action(docids=self.ids,
report_name=report_name)
def _prepare_report_general_ledger(self):

4
account_financial_report_qweb/report/trial_balance_xlsx.py

@ -4,8 +4,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import abstract_report_xlsx
from openerp.report import report_sxw
from openerp import _
from odoo.report import report_sxw
from odoo import _
class TrialBalanceXslx(abstract_report_xlsx.AbstractReportXslx):

4
account_financial_report_qweb/tests/abstract_test.py

@ -3,7 +3,7 @@
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
class AbstractTest(TransactionCase):
@ -41,7 +41,7 @@ class AbstractTest(TransactionCase):
# Check if report template is correct
report_html = self.env['report'].get_html(
self.report, self.qweb_report_name
self.report.id, self.qweb_report_name
)
self.assertTrue(self.report_title.encode('utf8') in report_html)
self.assertTrue(

2
account_financial_report_qweb/wizard/aged_partner_balance_wizard.py

@ -5,7 +5,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from openerp import api, fields, models
from odoo import api, fields, models
class AgedPartnerBalance(models.TransientModel):

2
account_financial_report_qweb/wizard/general_ledger_wizard.py

@ -4,7 +4,7 @@
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
from odoo import models, fields, api
class GeneralLedgerReportWizard(models.TransientModel):

2
account_financial_report_qweb/wizard/open_items_wizard.py

@ -5,7 +5,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from openerp import models, fields, api
from odoo import models, fields, api
class OpenItemsReportWizard(models.TransientModel):

2
account_financial_report_qweb/wizard/trial_balance_wizard.py

@ -3,7 +3,7 @@
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
from odoo import models, fields, api
class TrialBalanceReportWizard(models.TransientModel):

1
setup/account_financial_report_qweb/odoo/__init__.py

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/account_financial_report_qweb/odoo/addons/__init__.py

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/account_financial_report_qweb/odoo/addons/account_financial_report_qweb

@ -0,0 +1 @@
../../../../account_financial_report_qweb

6
setup/account_financial_report_qweb/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save