a function to have the number of the week in a date : import datetime import calendar
def CWof(date): """the calendar week number of a date. @param date: python datetime """ return date.isocalendar()[1] come from : http://pypi.python.org/pypi/bda.calendar.base/1.2.1 but how to use it with fields.date ? -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=56056#56056 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
