Commit Graph

24 Commits (fe1560e71edf43ecce17963b128c97feda92c32f)

Author SHA1 Message Date
Dave Lasley 5cdde03845 Merge pull request #42 from syleam/8.0-fix-report_type_field
[FIX] [report_xls] Override the field to add the value instead of breaking the validation system
2016-09-15 12:55:16 -07:00
Sylvain GARANCHER 63e99ca835 [FIX] Override the field to add the value instead of breaking the validation system 2016-08-23 09:46:07 +02:00
Jairo Llopis 64d940c735 [FIX][report_xls] Fix regression introduced in 65223f4.
Variables are now at module level because they have to be mocked when there is
an `ImportError`, so we got an `AttributeError` when trying to use them.
2016-08-22 11:01:45 +02:00
Jairo Llopis ac3a648605 [FIX][report_xls] Add a variable when import fails.
Otherwise you can get errors like:

```
    from . import reporting_xls
  File "/opt/odoo/available/OCA/l10n-spain/account_balance_reporting_xls/report/reporting_xls.py", line#
Please enter the commit message for your changes. Lines starting
 31, in <module># with '#' will be ignored, and an empty message aborts the commit.
    from openerp.addons.report_xls.report_xls import report_xls# On branch 8.0-report_xls-protected_import
  File "/opt/odoo/available/OCA/OCB/openerp/modules/module.py", line 80, in load_module# Changes to be
committed:
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)# modified: report_xls.py
  File "/opt/odoo/available/OCA/reporting-engine/report_xls/__init__.py", line 24, in <module>#
    from . import report_xls
  File "/opt/odoo/available/OCA/reporting-engine/report_xls/report_xls.py", line 63, in <module>
    class report_xls(report_sxw):
  File "/opt/odoo/available/OCA/reporting-engine/report_xls/report_xls.py", line 230, in report_xls
    row_style=default_style, set_column_size=False):
NameError: name 'default_style' is not defined
```
2016-08-17 13:13:16 +02:00
Yajo 65223f4a16 [FIX][report_xls] Protect import. (#64)
[FIX][report_xls] Protect import.

Even after merging 2bf93a1d49, import still breaks when trying to use module's stuff at class definition time when module is not imported.

I move xsl types to a failure-safe scope.
2016-08-13 03:06:47 +02:00
Pedro M. Baeza fddca415b8 [FIX] report_xls: Add missing README.rst 2016-08-09 08:55:43 +02:00
sergio b7a757dc6a [FIX][8.0] revert class renamed report_xls 2016-07-26 10:12:22 +02:00
Jairo Llopis b02cc1ce72 Fix linter warnings. 2016-07-25 14:38:39 +02:00
Jairo Llopis 2bf93a1d49 [FIX][report_xls] Protect xlwt import.
Given `xlwt` could happen to not be installed because it is an optional dependency.

See https://github.com/odoo/odoo/issues/12897#issuecomment-234928120.
2016-07-25 13:34:46 +02:00
Alexandre Fayolle 551c2b1775 Revert "[SEC] report_xls: fix unsafe eval"
This reverts commit b154dde083.
2016-02-18 09:54:27 +01:00
Alexandre Fayolle b154dde083 [SEC] report_xls: fix unsafe eval 2016-02-15 10:15:10 +01:00
Alexandre Fayolle 0cf952e0f0 Merge pull request #25 from akretion/prevent-style-making-error
[FIX] add arg to workbook creation
2015-11-25 11:55:48 +01:00
Stéphane Bidoul 822b6a0f05 [UPD] prefix versions with 8.0 2015-10-09 10:02:57 +02:00
David Beal 796027909c [FIX] add arg to workbook creation 2015-10-07 22:04:48 +02:00
Alexandre Fayolle ae1ef02302 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2015-03-02 17:27:27 +01:00
luc-demeyer 47800d626c remove unused imports 2014-10-05 19:13:01 +02:00
luc-demeyer 7480f51e99 80 - report_xls port 2014-10-05 18:28:25 +02:00
luc-demeyer 232b9ddcbb rm report_xls 2014-10-05 18:11:29 +02:00
luc-demeyer 74c3afa363 8.0 port of report_xls module 2014-10-05 18:11:29 +02:00
Pedro M. Baeza 834c3fc277 Preparation for 8.0 branch 2014-09-30 21:22:37 +02:00
unknown d1249c1e9d [FIX] timezone fix in report_xls 2014-05-23 11:18:46 +02:00
Luc De Meyer 8a1cbdb707 report_xls timezone fix 2014-05-12 22:49:36 +02:00
Luc De Meyer d7d440cb2f style & documentation refresh, xls footer datetime fix 2014-01-06 23:22:39 +01:00
Luc De Meyer 0caa3641d6 add report_xls module 2013-11-15 16:56:47 +01:00