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

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)?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
1391
0
ธ.ค. 23
1758
1
เม.ย. 24
2895
1
มิ.ย. 25
1096
1
ธ.ค. 24
1958