Skip to content

Instantly share code, notes, and snippets.

@eLBati
Created October 20, 2011 14:50
Show Gist options
  • Save eLBati/1301335 to your computer and use it in GitHub Desktop.
Save eLBati/1301335 to your computer and use it in GitHub Desktop.
_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