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

Hello, I have Odoo 8. I want to create a custom report showing the "credit" field of the partners. This is a function field, so when I try to show this in the report I get the error "the field 'credit' does not exist".

How can I display a function field in a report?

Thanks!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Add the attribute store=True in the field definition and try

Ảnh đại diện
Huỷ bỏ
Tác giả

Yes, it works, but is there any problem using store=True without specifying the fields that depends on?

I don't think there is any problem for using like that. You have used that attribute on "credit" field definition in the python file right?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 16
6788
0
thg 6 20
2855
7
thg 5 20
6334
5
thg 6 17
9071
5
thg 11 16
6914