Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
10202 Lượt xem

Hello Frieds,

I Try to create new price list report in Odoo v8. i simply copy and past product/views/report_pricelist.xml to other module and also change template id and create one report menu in xml file. i installed this module in odoo i woked but when i try to press button and i call this report i get below error.

QWebException: "'NoneType' object has no attribute '__getitem__'" while evaluating

"get_pricelist(data['form']['price_list'])"

 

how can i resolve this problem?

 

Thanks in advance.

 

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

@Harsh Either your variable 'data' is empty or data['form'] is empty or none, where it is trying to fetch the data. Check it !!

Tác giả

Hi, Thanks for your replay i also checked about blank data but data and data['form'] is not blank. the main question is original report is working but i created copy of that report is it not working. so have any idea?

Tác giả Câu trả lời hay nhất

It's Done

Using Parsing File for report and error resolved.

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

Hey, Facing the same problem, can you show me how u have used to parsing file. thanks.

Câu trả lời hay nhất

Hi,

Could you help me on this,

how did you resolved this issue i m also facing this issue

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