You could do a second field, but every time you stored the data you'd need to 
write to both fields (+/- 7 days). I think it would be a heckuva lot easier 
just to create a new type of field though - with get and set functions that do 
that work.

If you stored the field as a date in postgresql, the set could write it as the 
first day of that week and the get could pull it as a week number. You could 
even display it as a range in your selection field or a week if you wanted.

btw - be careful hard coding those weeks, since there really isn't 52 weeks in 
a year.  [Wink]




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=56134#56134

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to