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.

0

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

By
Jasad
on 8/31/15, 8:00 AM 1,437 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.

0

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2993
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 8/31/15, 4:26 PM

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

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

1 follower(s)

Stats

Asked: 8/31/15, 8:00 AM
Seen: 1437 times
Last updated: 8/31/15, 4:26 PM