Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2542 Widoki

Hi,

Running Odoo v14 enterprise.


We have some custom fields on our sale.subscription model.

How can we add these to the sale.subscription.report model? (e.g. In order to have them in the pivot table on Subscriptions > Reporting > Subscriptions)


Looking at the sale.subscription.report model, I cannot see how these are linked to the individual subscriptions (ID's)?


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You have inherit the above model and add the new fields and then  inherit the queries which brings data to this model to bring data to the new fields.

See an example of similar case with sale.report model:  https://www.youtube.com/watch?v=xNuVyrdZ3dU

Thanks & Regards

Awatar
Odrzuć
Autor

Failed to mention: we only have the ability via Studio (not directly in the code), so only front-end changes

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 25
1572
0
gru 23
1913
1
kwi 24
2966
1
cze 25
1393
1
gru 24
2168