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 a custom error popup from a report parser

Leonardo Donelli
on 6/27/14, 9:17 AM 1,304 views

In the python code of the models we can use orm.except_orm to display an error popup.

If I try to use it in a report parser (e.g. a class inheriting report_sxw.parse_rml) it won't work: instead of my error I'll get

SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data

And my custom error will be visible only in my log.

How can I display an error popup from a report parser class?

Hi Leonardo, your question same as mine : go to this link https://www.odoo.com/forum/help-1/question/solved-how-to-raise-an-error-warning-in-report-parser-84956

Ajeng Shilvie
on 5/6/15, 5:21 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

1 follower(s)


Asked: 6/27/14, 9:17 AM
Seen: 1304 times
Last updated: 10/14/16, 10:07 AM