예제 #1
0
파일: contact_views.py 프로젝트: hforge/crm
 def _get_schema(self, resource, context):
     tags_schema = TagsAware_Edit._get_schema(self, resource, context)
     return freeze(merge_dicts(
         contact_schema,
         # crm_p_lastname and crm_p_status are mandatory
         crm_p_lastname=contact_schema['crm_p_lastname'](
             mandatory=True),
         crm_p_status=contact_schema['crm_p_status'](mandatory=True),
         # Tags
         tags=tags_schema['tags']))
예제 #2
0
파일: company_views.py 프로젝트: hforge/crm
 def _get_schema(self, resource, context):
     tags_schema = TagsAware_Edit._get_schema(self, resource, context)
     return freeze(
         merge_dicts(
             company_schema,
             # title is mandatory
             title=company_schema["title"](mandatory=True),
             # Tags
             tags=tags_schema["tags"],
         )
     )
예제 #3
0
파일: mission_views.py 프로젝트: hforge/crm
 def _get_schema(self, resource, context):
     tags_schema = TagsAware_Edit._get_schema(self, resource, context)
     return freeze(merge_dicts(
         mission_schema,
         # title and crm_m_status are mandatory
         title=mission_schema['title'](mandatory=True),
         crm_m_status=mission_schema['crm_m_status'](mandatory=True),
         # resource needed
         crm_m_assigned=mission_schema['crm_m_assigned'](
             resource=resource),
         crm_m_cc=mission_schema['crm_m_cc'](resource=resource),
         # Tags
         tags=tags_schema['tags']))