Translations for most of contract & templates

This commit is contained in:
2023-03-12 19:12:35 +01:00
parent 868eea79bf
commit 427ea64f8d
5 changed files with 122 additions and 49 deletions

View File

@@ -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):
"""