Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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?

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 24
8522
2
thg 2 24
24968
1
thg 8 23
2325
1
thg 7 22
3139
4
thg 8 18
7597