openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17231
[Bug 794207] Re: MRP operations time precission to seconds
Why is hours a float value?
Would it be easier to have it in seconds?
It is realy easy to manipulate values as seconds.
I tried the suggestion above which works for the client however the web
needs to work also.
But I cannot see how to get hh:mm:ss out of a float value. Maybe someone
can enlighten me.
How to add seconds to this????
client/6.1/bin/tools/datetime_util.py
def float_time_convert(float_val):
hours = math.floor(abs(float_val))
mins = round(abs(float_val)%1+0.01,2)
if mins >= 1.0:
hours = hours + 1
mins = 0.0
else:
mins = mins * 60
float_time = '%02d:%02d' % (hours,mins)
return float_time
Is it better to convert it all to seconds???
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/794207
Title:
MRP operations time precission to seconds
Status in OpenERP Addons (modules):
Opinion
Bug description:
MRP operations time precision to seconds
In our industry we need to estimate time for one cycle in seconds, in
fact we do have several operations for one second.
Please make possible to use time with seconds in all manufacture
process.
I would gladly help if I knew how.
I tried to make the field nbr_hours in work center definition as field.time, it does display seconds but then it does not compute.
I need help please,
Thanks
Mihai
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/794207/+subscriptions