On 2016-06-28 16:35, Dominique Chabord wrote:
> For sharing what the title made me think of, I think it would be nice
> to have a count-down widget in some cases instead of a date widget :
> Here is an example of use case :
> we are 28/06
> - instead of showing "planned date 1/07", we might show "3 days left"
> - instead of showing "planned date 20/06", we might show "8 days late"
> or something like this.

Indeed we already have a field TimeDelta which could be used to display
such information.
But instead of "3 days left", it will show "3 d" and for "8 days late",
it will show "-8 d". I think it is normal to not have the "left/late"
suffix because it is subjective.

But of course such field will not be refreshed automatically when time
goes. So if it is used against "now", it is less accurate. But I think a
plugin widget is doable that will reuse the formatting of TimeDelta. And
if there are really a general need for that, it could be in base.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20160628145509.GT4037%40tetsuo.

Reply via email to