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

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!

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hello,

Thank you very much for your response and guidance!

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sie 25
513
1
lip 25
422
1
lip 25
846
1
lip 25
1208
2
lip 25
399