Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

7

widget="progressbar" in Kanban view

By
Ameera PP
on 10/30/16, 9:02 AM 389 views

I tried <field name=progress_rate" widget="progressbar"/> in kanban view.. It just showing the value instead of progressbar . Why widget="progressbar" not supporting in kanban view..Its supporting in form view and tree view. Is there any way to show the progressbar in kanban view?


5
shameem@aχoncoms
On 10/31/16, 6:47 AM

Hi Ameera,

Try  widget gauge

For example Create two integer fields  

progress_rate = fields.Integer()
maximum_rate = fields.Integer()

Set widget="gauge" and  max_field is other field

<field name="invoiced_target" widget="gauge" style="width:120px;height: 90px; cursor: pointer;" 
options="{'max_field': 'maximum_rate'}">
Progress
</field>


Example Code

<kanban>
    <field name="progress_rate"/> 
    <field name="maximum_rate"/>  
        <templates> 
            <t t-name="kanban-box">
                <div class="oe_kanban_global_click">  
                    <field name="progress_rate" widget="gauge" style="width:120px;height:90px;cursor:pointer;" 
                           options="{'max_field': 'maximum_rate'}"> 
                                   Progress                               
                    </field>                           
                </div>     
             </t>
        </templates>
</kanban>



Thanks Shameem

Ameera PP
on 10/31/16, 10:30 AM

Good Shameem.. You have an up vote

Nilmar Shereef
on 11/8/16, 5:55 AM

can you tell us on wich ODOO version this widget is usable? thx

Bonnet Denis
on 11/28/16, 9:15 AM

It is working in odoo 8 and odoo 9

shameem@aχoncoms
on 11/29/16, 2:54 AM
0

Hilar AK

--Hilar AK--
778
| 4 1 7
Italy
--Hilar AK--


Hilar AK
On 10/31/16, 7:31 AM

+1 Shameem

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/30/16, 9:02 AM
Seen: 389 times
Last updated: 11/15/16, 8:16 AM