Odoo Help

10
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 AK
On 10/31/16, 7:31 AM

+1 Shameem

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: 4927 times
Last updated: 1/3/18, 12:06 AM