İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
6205 Görünümler

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.


Avatar
Vazgeç

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

En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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.

En İyi Yanı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

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Mar 22
9684
0
Mar 23
1943
1
Oca 25
2763
1
Oca 21
3805
3
Oca 23
29442