Odoo Help

0

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

By
Ajeng Shilvie
on 5/4/15, 10:01 PM 730 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


0
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.

Register

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)

Stats

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