werkzeug > 0.9: Exceptions raised from a report lead to an OpenERP client error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Web Team |
Bug Description
Hi,
I have webkit reports which can raise exceptions (either from the report class that derives from report_
The exceptions have been working fine with werkzeug 0.8.3: an error dialog was shown and the creation of the report got properly cancelled.
When upgrading werkzeug to a version > 0.9 (tried 0.9.3 and 0.9.4), I instead get an "OpenERP Client error" with the content: "Uncaught SyntaxError: Unexpected end of input".
This bug seems to have come up before in another fashion: see bug #1193563.
I am using rev 4038 of openerp-web/7.0, rev 5101 of openobject-
Please have a look - I am of course available for further questions.
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Here is a test case: the module creates a report attached to res.users objects; the report can be printed by selecting a user in the user list and clicking on "Print > Test report".
With werkzeug 0.8, the raise is properly caught and results in a nice error dialog.
With werkzeug 0.9, a client error shows up.
Repo of the test: <https:/ /bitbucket. org/houzefa- abba/report- test/overview>