Created
October 20, 2011 14:50
-
-
Save eLBati/1301335 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_name = "resource.calendar.attendance" | |
_description = "Work Detail" | |
_columns = { | |
'name' : fields.char("Name", size=64, required=True), | |
'dayofweek': fields.selection([('0','Monday'),('1','Tuesday'),('2','Wednesday'),('3','Thursday'),('4','Friday'),('5','Saturday'),('6','Sunday')], 'Day of week'), | |
'date_from' : fields.date('Starting date'), | |
'hour_from' : fields.float('Work from', size=8, required=True, help="Working time will start from"), | |
'hour_to' : fields.float("Work to", size=8, required=True, help="Working time will end at"), | |
'calendar_id' : fields.many2one("resource.calendar", "Resource's Calendar", required=True), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment