Skip to Content
Menu
This question has been flagged
2 Replies
1193 Views

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!

Avatar
Discard
Author Best Answer

Hello,

Thank you very much for your response and guidance!

Avatar
Discard
Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
3
Aug 25
505
1
Jul 25
376
1
Jul 25
836
1
Jul 25
1201
2
Jul 25
394