Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
6215 Vizualizări

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.


Imagine profil
Abandonează

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
3
mar. 22
9689
0
mar. 23
1949
1
ian. 25
2778
1
ian. 21
3807
3
ian. 23
29453