Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_partner
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Hervé Silvant - CGScop
cgscop_partner
Validations
9adf7eba
Valider
9adf7eba
rédigé
15 oct. 2019
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Calcul de licéité
parent
17cf3fc8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
datas/res.partner.rgpd.origin.csv
+8
-8
8 ajouts, 8 suppressions
datas/res.partner.rgpd.origin.csv
models/res_partner.py
+40
-3
40 ajouts, 3 suppressions
models/res_partner.py
avec
48 ajouts
et
11 suppressions
datas/res.partner.rgpd.origin.csv
+
8
−
8
Voir le fichier @
9adf7eba
id,name
id,name
rgpd_origin_1,"Fiche contact, site internet"
rgpd_origin_1,"Fiche contact, site internet"
rgpd_origin_2,Prospect journée d'info coll
rgpd_origin_2,
"
Prospect journée d'info coll
"
rgpd_origin_3,"Prospect (salon, rdv, internet…)"
rgpd_origin_3,"Prospect (salon, rdv, internet…)"
rgpd_origin_4,Dossiers d'adhésion
rgpd_origin_4,
"
Dossiers d'adhésion
"
rgpd_origin_5,Dossiers Liste ministère
rgpd_origin_5,
"
Dossiers Liste ministère
"
rgpd_origin_6,"Dossiers annuels non LM (scic, scop47)"
rgpd_origin_6,"Dossiers annuels non LM (scic, scop47)"
rgpd_origin_7,Salariés CG
rgpd_origin_7,
"
Salariés CG
"
rgpd_origin_8,Salariés UR
rgpd_origin_8,
"
Salariés UR
"
rgpd_origin_9,Salariés Fédération
rgpd_origin_9,
"
Salariés Fédération
"
rgpd_origin_10,Elus
rgpd_origin_10,
"
Elus
"
rgpd_origin_11,"VIP, Officiels"
rgpd_origin_11,"VIP, Officiels"
rgpd_origin_12,Fournisseurs
rgpd_origin_12,
"
Fournisseurs
"
Ce diff est replié.
Cliquez pour l'agrandir.
models/res_partner.py
+
40
−
3
Voir le fichier @
9adf7eba
...
@@ -334,7 +334,9 @@ class ScopPartner(models.Model):
...
@@ -334,7 +334,9 @@ class ScopPartner(models.Model):
(
"
consent
"
,
"
Consentement
"
),
(
"
consent
"
,
"
Consentement
"
),
(
"
legitimate
"
,
"
Intérêt légitime
"
),
(
"
legitimate
"
,
"
Intérêt légitime
"
),
(
"
none
"
,
"
Aucune
"
)],
(
"
none
"
,
"
Aucune
"
)],
string
=
"
Licéité du contact
"
,
default
=
"
none
"
)
string
=
"
Licéité du contact
"
,
compute
=
"
_compute_contact_legality
"
,
store
=
True
)
# Champs pour partenaires
# Champs pour partenaires
organization_type_id
=
fields
.
Many2one
(
organization_type_id
=
fields
.
Many2one
(
...
@@ -472,8 +474,6 @@ class ScopPartner(models.Model):
...
@@ -472,8 +474,6 @@ class ScopPartner(models.Model):
@api.multi
@api.multi
def
scop_send_to_cg
(
self
):
def
scop_send_to_cg
(
self
):
# TODO - add call to API function
self
.
write
({
self
.
write
({
'
project_status
'
:
'
5_cg
'
,
'
project_status
'
:
'
5_cg
'
,
})
})
...
@@ -495,6 +495,43 @@ class ScopPartner(models.Model):
...
@@ -495,6 +495,43 @@ class ScopPartner(models.Model):
})
})
return
True
return
True
@api.depends
(
'
contact_origin_id
'
,
'
parent_id.cooperative_form_id
'
,
'
parent_id.membership_status
'
)
def
_compute_contact_legality
(
self
):
for
partner
in
self
:
partner
.
contact_legality
=
'
none
'
if
(
partner
.
contact_origin_id
.
name
==
"
Fiche contact, site internet
"
):
partner
.
contact_legality
=
'
consent
'
if
partner
.
contact_origin_id
.
name
in
(
"
Prospect journée d
'
info coll
"
,
"
Prospect (salon, rdv, internet…)
"
,
"
Elus
"
):
partner
.
contact_legality
=
'
legitimate
'
if
(
partner
.
contact_origin_id
.
name
in
(
"
Salariés CG
"
,
"
Salariés UR
"
,
"
Salariés Fédération
"
)):
partner
.
contact_legality
=
'
employee
'
if
(
partner
.
contact_origin_id
.
name
in
(
"
Elus
"
,
"
VIP, Officiels
"
,
"
Fournisseurs
"
)):
partner
.
contact_legality
=
'
legitimate
'
if
not
partner
.
is_company
and
partner
.
parent_id
:
parent
=
partner
.
parent_id
if
(
partner
.
contact_origin_id
.
name
in
(
"
Dossiers d
'
adhésion
"
,
"
Dossiers annuels non LM (scic, scop47)
"
)
and
parent
.
cooperative_form_id
and
parent
.
membership_status
==
"
member
"
):
partner
.
contact_legality
=
'
customer
'
if
(
partner
.
contact_origin_id
.
name
==
(
"
Dossiers annuels non LM (scic, scop47)
"
)
and
parent
.
membership_status
!=
"
member
"
):
partner
.
contact_legality
=
'
legitimate
'
if
(
partner
.
contact_origin_id
.
name
==
(
"
Dossiers Liste ministère
"
)
and
parent
.
cooperative_form_id
.
name
==
"
SCIC
"
):
partner
.
contact_legality
=
'
customer
'
class
ResPartneCertification
(
models
.
Model
):
class
ResPartneCertification
(
models
.
Model
):
_name
=
"
res.partner.certification
"
_name
=
"
res.partner.certification
"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter