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

Hi Community,

I'd like to know if there is a way to modify the Kanban Column ProgressBar in order to allow a second sum_field, to show it beside the existing sum_field.

I found out the progressbar js code seems to be in addons/web/static/src/js/views/kanban/kanban_column_progressbar.js, but I don't know how or what to do to add that second sum_field.

Should I inherit the js file in some way? If so, how can I do that?

This is the progressbar I'm talking about:



This is the idea I have in mind:


Awatar
Odrzuć
Autor Najlepsza odpowiedź

\Kenly\ \gave\ me\ an\ answer\ \answer in Stack Overflow about how to do it through the KanbanView.ColumnProgressBar template, in case someone is interested.

Before he aswered, I found another way when analyzing the Column Progressbar js code.

I inherited that js code and expanded the functions to do the same process already made with sum_field, but with another sum_fieldB field. This makes the new field look and feel as if it was already part of Odoo, with the same animation and format as the original sum_field.



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
maj 22
2076
1
lip 25
2630
1
lip 24
1293
0
maj 23
2329
3
mar 25
24061