Translations for most of contract & templates
This commit is contained in:
@@ -34,6 +34,9 @@ class Individual(EntityType):
|
||||
|
||||
return '{} {}'.format(self.firstname, self.lastname)
|
||||
|
||||
class Config:
|
||||
title = 'Particulier'
|
||||
|
||||
|
||||
class Employee(BaseModel):
|
||||
role: Indexed(str) = Field(title='Poste')
|
||||
@@ -57,10 +60,16 @@ class Corporation(EntityType):
|
||||
activity: Indexed(str) = Field(title='Activité')
|
||||
employees: List[Employee] = Field(default=[], title='Employés')
|
||||
|
||||
class Config:
|
||||
title = 'Entreprise'
|
||||
|
||||
|
||||
class Institution(Corporation):
|
||||
type: Literal['institution'] = 'institution'
|
||||
|
||||
class Config:
|
||||
title = 'Institution'
|
||||
|
||||
|
||||
class Entity(CrudDocument):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user