I like the proposed fix, it has made this piece of code re-usable for everyone who is facing similar problems.
I do wonder a bit if it would not be better placed in the tools.misc module ? Or even better make a module tools.time to start collecting some of these conversion functions ? We can even keep the moved functions inside their original place by just importing them from the tools.time module (mind the loop references though!) -- https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-581633-rgo/+merge/134877 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.1-opw-581633-rgo. _______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp