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

Hello,

I am working on a custom module in Odoo, and I’m trying to add a section before the headers in my tree view to display the sum of a specific field, x_studio_value, as it is done in the tree view of the Purchase module (see the image below). However, I’m running into some issues and I’m not sure about the best method to achieve this.

My goal:

I want to display the sum of the x_studio_value field above the headers, before the usual columns.

Is it possible to do this with Odoo Studio?

If you have any ideas or suggestions on how to do this, it would be a great help.

Thank you in advance for your assistance!

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello,

Thank you very much for your response and guidance!

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

The good thing about Odoo, is its modularity, but it comes with a price.

Studio is great to customize the views with some fields and simple calculations.

In your case, neither we are talking of some fields, neither of simple.

If you go to the purchase module of Odoo, in the static folder under views you will find a file that is called, "purchase_listview.xml", it then calls "purchase_dashboard.xml" which is what you want to achieve.

both files comes with their corresponding js file.

if you care to look at those, you will see all the logic applied to achieve what you are looking for.

unfortunately, I think you might need to program a module for that.

I wish you luck.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 25
504
1
ก.ค. 25
374
1
ก.ค. 25
836
1
ก.ค. 25
1197
2
ก.ค. 25
391