Odoo Help

0

How to show widget="float_time" in Qweb Report ?

By
Jasad
on 8/31/15, 8:00 AM 2,294 views

How to show widget="float_time"  in Qweb Report ?

I want to show the time difference in Qweb Report. I already have a field in the database with widget float_time and I want to show the same in Report.

1
Guillaume JULLIEN
On 2/28/17, 12:19 PM

Try:

<t t-esc="'%02d:%02d' % (int(your_field), your_field % 1 * 60)" />

If

<span t-field="your_field" t-field-options='{"widget": "float_time"}' />

is still not implemented

1

not beautiful but it works


<t t-set="delay" t-value="1.5" />
<t t-esc="'%s:%s' % (str(delay).split('.')[0], int(float(str('%.2f' % delay).split('.')[1])/100*60))" />   

Don't think that it's native in Odoo

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

1 follower(s)

Stats

Asked: 8/31/15, 8:00 AM
Seen: 2294 times
Last updated: 2/28/17, 12:19 PM