Hello,
I think you can even use float_compare instead of float_is_zero. That way you can do the whole teste in one if.
http://bazaar.launchpad.net/~openerp/openobject-server/7.0/view/head:/openerp/tools/float_utils.py#L99
if float_compare(float_end_time, float_start_time, precision_rounding=0.0000001) == -1:
Cheers.
« Back to merge proposal
Hello,
I think you can even use float_compare instead of float_is_zero. That way you can do the whole teste in one if.
http:// bazaar. launchpad. net/~openerp/ openobject- server/ 7.0/view/ head:/openerp/ tools/float_ utils.py# L99
if float_compare( float_end_ time, float_start_time, precision_ rounding= 0.0000001) == -1:
Cheers.