Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-29 Thread Fabyc
On Tuesday, June 28, 2016 at 10:00:04 AM UTC-5, Cédric Krier wrote:
>
> 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. 
>

+1
It could be a good improvement.
 

>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: cedric...@b2ck.com  
> 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/0848b16b-fd15-4f65-aadc-64d38619c485%40googlegroups.com.


Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-28 Thread Cédric Krier
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: cedric.kr...@b2ck.com
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.


Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-28 Thread Dominique Chabord
When I read :

>> > * Fabyc  [2016-06-24 17:36 +0200]:

>> >
>> > >Is there a widget or some way for displaying a countdown time?
>> >

I thought: that's a great idea !
but after the description of the proposed feature, I agree with Cédric
to consider it would not be at its place in Tryton.

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.
I hope this idea is not completely stupid ;-)

-- 
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/CAHZrxK6Nt2P3eFgZSbSWuhSBoUj1UzCspS%2Biw7cNUn_u%3De_9iA%40mail.gmail.com.


Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-28 Thread Cédric Krier
On 2016-06-24 13:34, Fabyc wrote:
> Hi Nicolás.
> 
> On Friday, June 24, 2016 at 12:01:54 PM UTC-5, Nicolas Évrard wrote:
> >
> > * Fabyc  [2016-06-24 17:36 +0200]: 
> > >Hi everybody. 
> >
> > Hello, 
> >
> > >Is there a widget or some way for displaying a countdown time? 
> >
> > What do you mean by that? 
> >
> 
> A countdown similar to this one [1] with "Start" and "Stop" buttons
> 
> [1]
> https://www.google.com/search?q=countdown%20timer=j
>  
> 
> > What would be the use of it? 
> >
> 
> For a cab service company:
> 
> - Customer calls and asks for a cab service to operator of the cab company.
> - Operator calls to taxi driver and ask him in how long can be in the 
> customer 
> address
> - Taxi driver calls to operator and say he is going to be in the address in 
> 10 min
> - Operator calls and says to customer that his/her cab service will be in 
> his/her 
> address in 10 min.
> - Operator press "Start" button of countdown
> - Taxi driver is close to the address and tell to operator about it
> - Operator sees the remain time and can see how long lefts to the taxi to 
> be on 
> the customer address
> - Operator call to customer and say hi/her cab is going to be in for 
> example 4 min.
> - When taxi is on address, operator press "Stop" button
> - It is saved both of times: the init one (10 min) and the real one (when 
> "Stop" button 
> was pressed) when taxi arrived to the customer address.
> - The time information will be used for improving the time in arrive of 
> taxi to customer 
> address.
> 
> 
> Similar use case for a food fast commerce:
> 
> - Some customer asks for food to employee
> - Employee says to customer that his/her order will be ready in 10 min.
> - Employee press "Start" button of countdown
> - Once the order is ready, employee call to customer
> - Employee sees the remain time and can see how many time lefts to dispatch 
> the 
> order
> - Employee press "Stop" button
> - It is saved both of the times: the init one (10 min) and the real one 
> (when "Stop" 
> button was pressed) when order was dispatched.
> - The time information will be used for improving the order time when are 
> dispatched 
> the fast food orders.
> 
> It is the same case when fast food commerce delivers the order to the 
> customer address.
> 
> 
> Instead of a countdown time could be a counter (like a digital watch) that 
> it starts run 
> when it is clicked "Start" button

For me, it is description of a specific application (with maybe Tryton
as backend) but we are no more in the transaction paradigm so this kind
of widgets do not have its place in the generic transactional client.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
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/20160628141650.GS4037%40tetsuo.


Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-24 Thread Sergi Almacellas Abellana


On 24 de juny de 2016 22:34:55 CEST, Fabyc  wrote:
>Hi Nicolás.
>
>On Friday, June 24, 2016 at 12:01:54 PM UTC-5, Nicolas Évrard wrote:
>>
>> * Fabyc  [2016-06-24 17:36 +0200]: 
>> >Hi everybody. 
>>
>> Hello, 
>>
>> >Is there a widget or some way for displaying a countdown time? 
>>
>> What do you mean by that? 
>>
>
>A countdown similar to this one [1] with "Start" and "Stop" buttons
>
>[1]
>https://www.google.com/search?q=countdown%20timer=j
> 
>
>> What would be the use of it? 
>>
>
>For a cab service company:
>
>- Customer calls and asks for a cab service to operator of the cab
>company.
>- Operator calls to taxi driver and ask him in how long can be in the 
>customer 
>address
>- Taxi driver calls to operator and say he is going to be in the
>address in 
>10 min
>- Operator calls and says to customer that his/her cab service will be
>in 
>his/her 
>address in 10 min.
>- Operator press "Start" button of countdown
>- Taxi driver is close to the address and tell to operator about it
>- Operator sees the remain time and can see how long lefts to the taxi
>to 
>be on 
>the customer address
>- Operator call to customer and say hi/her cab is going to be in for 
>example 4 min.
>- When taxi is on address, operator press "Stop" button
>- It is saved both of times: the init one (10 min) and the real one
>(when 
>"Stop" button 
>was pressed) when taxi arrived to the customer address.
>- The time information will be used for improving the time in arrive of
>
>taxi to customer 
>address.

What you explain remains my to this module:

https://bitbucket.org/nantic/trytond-timetracker

Which adds the start and stop buttons on tasks and allows to compute the time 
spend on it. 

To compute the time spend saves the datetime when the start button is pressed 
and then when the stop button is pressed it computes de diferrence.

Hope it helps!


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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/A35D6F2B-CB9E-46F2-9561-CB02DBBDDC4F%40koolpi.com.


Re: [tryton] Is there a widget for displaying a countdown time?

2016-06-24 Thread Fabyc
Hi Nicolás.

On Friday, June 24, 2016 at 12:01:54 PM UTC-5, Nicolas Évrard wrote:
>
> * Fabyc  [2016-06-24 17:36 +0200]: 
> >Hi everybody. 
>
> Hello, 
>
> >Is there a widget or some way for displaying a countdown time? 
>
> What do you mean by that? 
>

A countdown similar to this one [1] with "Start" and "Stop" buttons

[1]
https://www.google.com/search?q=countdown%20timer=j
 

> What would be the use of it? 
>

For a cab service company:

- Customer calls and asks for a cab service to operator of the cab company.
- Operator calls to taxi driver and ask him in how long can be in the 
customer 
address
- Taxi driver calls to operator and say he is going to be in the address in 
10 min
- Operator calls and says to customer that his/her cab service will be in 
his/her 
address in 10 min.
- Operator press "Start" button of countdown
- Taxi driver is close to the address and tell to operator about it
- Operator sees the remain time and can see how long lefts to the taxi to 
be on 
the customer address
- Operator call to customer and say hi/her cab is going to be in for 
example 4 min.
- When taxi is on address, operator press "Stop" button
- It is saved both of times: the init one (10 min) and the real one (when 
"Stop" button 
was pressed) when taxi arrived to the customer address.
- The time information will be used for improving the time in arrive of 
taxi to customer 
address.


Similar use case for a food fast commerce:

- Some customer asks for food to employee
- Employee says to customer that his/her order will be ready in 10 min.
- Employee press "Start" button of countdown
- Once the order is ready, employee call to customer
- Employee sees the remain time and can see how many time lefts to dispatch 
the 
order
- Employee press "Stop" button
- It is saved both of the times: the init one (10 min) and the real one 
(when "Stop" 
button was pressed) when order was dispatched.
- The time information will be used for improving the order time when are 
dispatched 
the fast food orders.

It is the same case when fast food commerce delivers the order to the 
customer address.


Instead of a countdown time could be a counter (like a digital watch) that 
it starts run 
when it is clicked "Start" button


I hope to have been clear in the use cases.

Thanks
 

>
> -- 
> Nicolas Évrard - B2CK SPRL 
> E-mail/Jabber: nicolas...@b2ck.com  
> 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/842d2a31-4cc8-4200-85ab-786568ad7c31%40googlegroups.com.


[tryton] Is there a widget for displaying a countdown time?

2016-06-24 Thread Fabyc
Hi everybody.

Is there a widget or some way for displaying a countdown time?

Thanks in advanced.

-- 
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/487d03f3-27d9-4281-8d7f-bc849c2fa056%40googlegroups.com.