Browse Source

[FIX] fix flake8 and pylint errors

pull/90/head
jbeficent 9 years ago
committed by Stéphane Bidoul
parent
commit
4260b113ca
  1. 51
      mis_builder/__openerp__.py
  2. 2
      mis_builder/models/aep.py
  3. 2
      mis_builder/models/aggregate.py
  4. 2
      mis_builder/models/mis_builder.py
  5. 2
      mis_builder/report/mis_builder_xls.py
  6. 2
      mis_builder/tests/test_mis_builder.py
  7. 2
      mis_builder/wizard/mis_builder_dashboard.py
  8. 46
      mis_builder_demo/README.rst
  9. 50
      mis_builder_demo/__openerp__.py

51
mis_builder/__openerp__.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder
@ -53,15 +53,16 @@ Configuration and Usage
To configure this module, you need to: To configure this module, you need to:
* Go to Accounting > Configuration > Financial Reports > MIS Report Templates where
you can create report templates by defining KPI's. KPI's constitute the rows of your
reports. Such report templates are time independent.
* Go to Accounting > Configuration > Financial Reports > MIS Report Templates
where you can create report templates by defining KPI's. KPI's constitute
the rows of your reports. Such report templates are time independent.
* Then in Accounting > Reporting > MIS Reports you can create report instance by
binding the templates to time period, hence defining the columns of your reports.
* Then in Accounting > Reporting > MIS Reports you can create report instance
by binding the templates to time period, hence defining the columns of your
reports.
* From the MIS Report view, you can preview the report, add it to and Odoo dashboard,
and export it to Excel.
* From the MIS Report view, you can preview the report, add it to and Odoo
dashboard, and export it to Excel.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
@ -74,11 +75,11 @@ For further information, please visit:
Developer notes Developer notes
=============== ===============
A typical extension is to provide a mechanism to filter reports on analytic dimensions
or operational units. To implement this, you can override _get_additional_move_line_filter
and _get_additional_filter to further filter move lines or queries based on a user
selection. A typical use case could be to add an analytic account field on mis.report.instance,
or even on mis.report.instance.period if you want different columns to show different
A typical extension is to provide a mechanism to filter reports on analytic
dimensions or operational units. To implement this, you can override
_get_additional_move_line_filter and _get_additional_filter to further
filter move lines or queries based on a user selection. A typical use case
could be to add an analytic account field on mis.report.instance, or even on mis.report.instance.period if you want different columns to show different
analytic accounts. analytic accounts.
Known issues / Roadmap Known issues / Roadmap
@ -87,28 +88,32 @@ Known issues / Roadmap
* Add 'Fiscal Year' period type. * Add 'Fiscal Year' period type.
* Allow selecting accounts by type. This is currently possible by expressing * Allow selecting accounts by type. This is currently possible by expressing
a query such as balp[][('account_id.user_type.code', '=', ...)]. This will work
but would be more efficient if one could write balp[user_type=...], as it would
involve much less queries to the database.
a query such as balp[][('account_id.user_type.code', '=', ...)].
This will work but would be more efficient if one could write balp[
user_type=...], as it would involve much less queries to the database.
* More tests should be added. The first part is creating test data, then it will be
easier. At the minimum, We need the following test data:
* More tests should be added. The first part is creating test data, then it
will be easier. At the minimum, We need the following test data:
* one account charts with a few normal accounts and view accounts, * one account charts with a few normal accounts and view accounts,
* two fiscal years, * two fiscal years,
* an opening entry in the second fiscal year, * an opening entry in the second fiscal year,
* to test multi-company consolidation, we need a second company with it's own * to test multi-company consolidation, we need a second company with it's own
account chart and two fiscal years, but without opening entry; we also need account chart and two fiscal years, but without opening entry; we also need
a third company which is the parent of the other two and has a consolidation
chart of account.
a third company which is the parent of the other two and has a
consolidation chart of account.
Bug Tracker Bug Tracker
=========== ===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20mis_builder%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us smashing it by providing a detailed and
welcomed feedback `here <https://github.com/OCA/account-financial-reporting
/issues/new?body=module:%20mis_builder%0Aversion:%208.0%0A%0A**Steps%20to%20
reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior
**>`_.
Credits Credits
======= =======

2
mis_builder/models/aep.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

2
mis_builder/models/aggregate.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

2
mis_builder/models/mis_builder.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

2
mis_builder/report/mis_builder_xls.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

2
mis_builder/tests/test_mis_builder.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

2
mis_builder/wizard/mis_builder_dashboard.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for Odoo, Management Information System Builder # mis_builder module for Odoo, Management Information System Builder

46
mis_builder_demo/README.rst

@ -1,46 +0,0 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
MIS Builder demo data
=====================
This module adds some demo data for the mis_builder module.
Installation
============
There is no specific installation procedure for this module.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20mis_builder%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Contributors
------------
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
* Laetitia Gangloff <laetitia.gangloff@acsone.eu>
* Adrien Peiffer <adrien.peiffer@acsone.eu>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

50
mis_builder_demo/__openerp__.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# mis_builder module for OpenERP, Management Information System Builder # mis_builder module for OpenERP, Management Information System Builder
@ -32,6 +32,54 @@
'author': 'ACSONE SA/NV,' 'author': 'ACSONE SA/NV,'
'Odoo Community Association (OCA)', 'Odoo Community Association (OCA)',
'website': 'http://acsone.eu', 'website': 'http://acsone.eu',
'description': """
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
MIS Builder demo data
=====================
This module adds some demo data for the mis_builder module.
Installation
============
There is no specific installation procedure for this module.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20mis_builder%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Contributors
------------
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
* Laetitia Gangloff <laetitia.gangloff@acsone.eu>
* Adrien Peiffer <adrien.peiffer@acsone.eu>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.
""",
'depends': [ 'depends': [
'account_accountant', 'account_accountant',
'mis_builder', 'mis_builder',

Loading…
Cancel
Save