Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata

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?

Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
3
lug 24
8265
2
feb 24
24709
1
ago 23
2155
1
lug 22
2973
4
ago 18
7472