Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1315 Vistas

We really need to be able to do cross model pivots. The ability to pull referenced fields from another model. Right now it seems pivot tables cannot access related fields in other models. This is a HUGE limitation and makes adding custom fields much less useful.

The export tool can access data cross model just fine...


Example:

Sales Order pivot table that shows QTY of items sold by month, by x_studio_PRODUCT_CUSTOM, by part number

x_studio_PRODUCT_CUSTOM
Part #QTY Sold
MayTransmitter
A12333
B123785
Lock
G45612
E45658
JuneTransmitter
A12312
B123434
Lock
G45634
E456464



Avatar
Descartar
Mejor respuesta

Hi,


To enable cross-model pivot reporting in Odoo:


    Inherit the existing pivot view and add stored related fields (store=True); refer this blog: https://www.cybrosys.com/blog/how-to-inherit-an-existing-pivot-view-report-in-odoo-18


    Create a custom pivot report using an SQL view that joins multiple models; refer this blog: https://www.cybrosys.com/blog/how-to-create-pivot-report-using-query-in-odoo-18


This effectively overcomes the limitation of Odoo core pivot views not supporting related fields across models and can be fully customized for your use case.


Hope it helps.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 20
4732
0
mar 25
2327
1
nov 22
4076
0
nov 21
2895
0
jun 21
3834