Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1191 Ansichten

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
Verwerfen
Autor Beste Antwort

Hello,

Thank you very much for your response and guidance!

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Aug. 25
504
1
Juli 25
374
1
Juli 25
836
1
Juli 25
1197
2
Juli 25
391