Odoo Help

Welcome!

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.

0

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

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

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)

Stats

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