[6.0RC2] opening wizard is not cancelled by exception from default_get()

Bug #702453 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Confirmed
Medium
OpenERP R&D Web Team

Bug Description

see testcase in attachment
the wizard should only run for account type "other" and open periods
the message
raise osv.except_osv(_('Warning !'),'This wizard is for valid posted moves only. You must modify draft moves directly')
is not displayed on the screen

Accounting/Journal Entries/Journal Items - > select line with payable / receivable -> change account
should raise error message

works with GTK

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

A simple testcase with official addons: with CRM installed, open a close/cancelled Lead, and try to click on the "Convert to opportunity" button on top-right of the form. It should fail to open the wizard because default_get() raises an exception (coming from view_init()). The opening of the wizard should be aborted and the error message should be displayed.
It works in GTK indeed.

Thanks for reporting!

summary: - [6.0RC2] wizard does not display "raise osv.except_osv" defined in
- view_init
+ [6.0RC2] opening wizard is not cancelled by exception from default_get()
Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Medium
milestone: none → 6.0
status: New → Confirmed
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Ferdinand @ Camptocamp,

Its fixed in trunk-webclient. Please update your code and notify us.
Revision-info:
4330 <email address hidden>

Thank you.

Changed in openobject-client-web:
status: Confirmed → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

does not raise error message with r 4347

Changed in openobject-client-web:
status: Fix Released → New
Changed in openobject-client-web:
status: New → In Progress
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Ferdinand & Olivier,

I have checked your scenario in web-client.
Olivier you are right default_get() raises an exception (coming from view_init())
Which is not handled by web-client but now its fixed in trunk. Please update your code and notify us.

Revision-info:
4355 <email address hidden>

Thank you.

Changed in openobject-client-web:
status: In Progress → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

Thanks - almost,
the error mesages pop's up, (in a window much to big), but can't e closed by clicking OK.
After closing the window it does not go back to journal entries but to "main accounting" screen - the one which is displayed after clicking accounting
IMHO a problem what was described already -
after closing of a wizard the form/ tree mustbe displayed which was the starting point of the wizard.

Changed in openobject-client-web:
status: Fix Released → New
Changed in openobject-client-web:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.