Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to raise an exception in Kanban view?

Timo Talvitie
on 12/14/13, 7:09 PM 937 views

I've created a custom write() method for the crm_lead model. Its purpose is to do some checkups when the stage of a lead/opportunity is changed and raise an exception if necessary.

This works fine if the stage is changed via the form view (by clicking the stage widget at the top), but if the change is done via the kanban view by dragging and dropping, it does not. The exception does still get triggered, but the message defined in raise osv.except_osv() does not get shown to the user, instead an alert box with the following message is shown:

An error has occured while moving the record to this group: undefined

Can I show a customized error message to the user in Kanban view? Since this popular question does not have any answers yet I'm not sure if this is possible to achieve.

I confirm, having the same behavior for the same use : the raise exception is not shown in the kanban view : undefined only...

Antoine Morit
on 1/2/14, 6:13 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 12/14/13, 7:09 PM
Seen: 937 times
Last updated: 3/16/15, 8:10 AM