def org_site_staff_config(r):
 table = current.s3db.hrm_human_resource
 settings = current.deployment_settings
 if settings.has_module('vol'):
  if settings.get_hrm_show_staff():
   if settings.get_org_site_volunteers():
    field = table.type
    field.label = current.T('Type')
    field.readable = field.writable = True
  elif settings.get_org_site_volunteers():
   table.type.default = 2
 field = table.organisation_id
 field.default = r.record.organisation_id
 field.writable = False
 field.comment = None

def org_site_staff_config ( r ) : table = current . s3db . hrm_human_resource settings = current . deployment_settings if settings . has_module ( 'vol' ) : if settings . get_hrm_show_staff ( ) : if settings . get_org_site_volunteers ( ) : field = table . type field . label = current . T ( 'Type' ) field . readable = field . writable = True elif settings . get_org_site_volunteers ( ) : table . type . default = 2 field = table . organisation_id field . default = r . record . organisation_id field . writable = False field . comment = None
configure the staff tab for sites .