-
-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX][report_xls] Protect import. (#64)
[FIX][report_xls] Protect import. Even after merging 2bf93a1, 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.
- Loading branch information
1 parent
f180c3c
commit 65223f4
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65223f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedrobaeza Since this was commited i get this error:
File "/home/odoo/git/Odoo/odoo/openerp/service/report.py", line 119, in _check_report
raise openerp.osv.orm.except_orm(exc.message, exc.traceback)
except_orm: (u"type object 'report_xls' has no attribute 'xls_types'", (<type 'exceptions.AttributeError'>, AttributeError("type object 'report_xls' has no attribute 'xls_types'",), <traceback object at 0x7fd2bea4fb48>))
Can you please fix this quickly.
65223f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please submit an issue with this information instead of commenting on a commit
65223f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
He already opened the issue, but it was solved before. He doesn't update the code.
65223f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah my bad, thanks @pedrobaeza - was just going through the morning emails & didn't see the corresponding issue 👍