bifurqué depuis cliss21/creme_center_fibois
feat(civicrm): ajout contact adhesion pour les societes
Parent
bb3eb135b1
révision
f0e6593919
|
@ -1,3 +1,4 @@
|
|||
from .contact_builder import ContactModelBuilder # noqa
|
||||
from .organisation_adhesion_append import OrganisationAdhesionAppend # noqa
|
||||
from .organisation_builder import OrganisationModelBuilder # noqa
|
||||
from .relation_builder import RelationModelBuilder # noqa
|
||||
|
|
|
@ -104,6 +104,7 @@ class CivicrmContact(ExtFieldMixin, models.Model):
|
|||
'extrenseignements__siren',
|
||||
'extrenseignements__effectif',
|
||||
'extrenseignements__chiffre_affaire',
|
||||
'extadhesion__contact_adhesion',
|
||||
]
|
||||
|
||||
tags = models.ManyToManyField(
|
||||
|
@ -714,3 +715,21 @@ class ExtRenseignements(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return str(self.entity)
|
||||
|
||||
|
||||
class ExtAdhesion(models.Model):
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'civicrm_value_adh_sion_22'
|
||||
|
||||
entity = models.OneToOneField(
|
||||
'CivicrmContact', models.DO_NOTHING, unique=True
|
||||
)
|
||||
contact_adhesion = models.ForeignKey(
|
||||
'CivicrmContact',
|
||||
models.DO_NOTHING,
|
||||
db_column='contact_adh_sion_147',
|
||||
related_name='representant_pour',
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
|
|
|
@ -2818,23 +2818,6 @@ class CivicrmUfMatch(models.Model):
|
|||
)
|
||||
|
||||
|
||||
class CivicrmValueAdhSion22(models.Model):
|
||||
entity = models.ForeignKey(
|
||||
'CivicrmContact', models.DO_NOTHING, unique=True
|
||||
)
|
||||
contact_adh_sion_147 = models.ForeignKey(
|
||||
'CivicrmContact',
|
||||
models.DO_NOTHING,
|
||||
db_column='contact_adh_sion_147',
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'civicrm_value_adh_sion_22'
|
||||
|
||||
|
||||
class CivicrmValueDTailsChaufferie12(models.Model):
|
||||
entity = models.ForeignKey(
|
||||
'CivicrmActivity', models.DO_NOTHING, unique=True
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket