Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6409 มุมมอง

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.


อวตาร
ละทิ้ง

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

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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.

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มี.ค. 22
10004
0
มี.ค. 23
2119
1
ม.ค. 25
3026
1
ม.ค. 21
3948
Add "Group By" to Tree View แก้ไขแล้ว
3
ม.ค. 23
29688