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

I have created a custom field that shows the currency based on the company. This works fine, except when doing a group by by product, my goal is that in the grouping it also shows the currency or currencies as follows: EUR, USD, etc. I think it has to do with the read_group function, however I can't customize it in a way that solves my case.


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

You can use store=True to show computed fields in search filter (group by).

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

When you group by product, do you want to show the groups based on currency field?

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

When I group by product I want the currency field to appear to me and for it not only to appear when I enter the different lines of each product.

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

Hi,

Is it a non stored compute field or related field ? If so, make it stored and try. Just set store=True along with field declaration.

Thanks

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

The field is a related field, however if I add store true this does not solve my problem.

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 3 22
9809
0
thg 3 23
2035
1
thg 1 25
2850
1
thg 1 21
3878
3
thg 1 23
29509