Odoo Help

10

widget="progressbar" in Kanban view

By
Ameera PP
on 10/30/16, 9:02 AM 2,024 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?


6
Shameem Babu @ iWesabe
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

GLOBAL CREATIVE CONCEPTS TECH CO LTD, Shameem Babu @ iWesabe
on 11/29/16, 2:54 AM
2
Hilar
On 10/31/16, 7:31 AM

+1 Shameem

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 10/30/16, 9:02 AM
Seen: 2024 times
Last updated: 2/14/17, 1:56 AM