Odoo Help


[SOLVED] How to raise an error warning in report parser ?

Ajeng Shilvie
on 5/4/15, 10:01 PM 1,041 views

in my RML report, i got an error when my query doesn't found any record.

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

a message appear only in my terminal.

How can I display an error message on browser ??

Thank You

Ajeng Shilvie
On 5/6/15, 5:20 AM

I resolved this by overriding create method, i put search method to get my record, if i found nothing i handle with osv.except_osv.

This method passed before RML search Query, so it works !

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/4/15, 10:01 PM
Seen: 1041 times
Last updated: 5/6/15, 5:23 AM