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
430ff4df
Valider
430ff4df
rédigé
10 oct. 2019
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Modification champs décès et contacts
parent
85fe7b51
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Tout étendre
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
models/res_partner.py
+18
-15
18 ajouts, 15 suppressions
models/res_partner.py
views/res_partner_cooperative.xml
+52
-83
52 ajouts, 83 suppressions
views/res_partner_cooperative.xml
avec
70 ajouts
et
98 suppressions
models/res_partner.py
+
18
−
15
Voir le fichier @
430ff4df
...
@@ -78,7 +78,10 @@ class ScopPartner(models.Model):
...
@@ -78,7 +78,10 @@ class ScopPartner(models.Model):
director_ids
=
fields
.
One2many
(
director_ids
=
fields
.
One2many
(
'
res.partner
'
,
'
parent_id
'
,
'
res.partner
'
,
'
parent_id
'
,
string
=
'
Contacts Dirigeants
'
,
string
=
'
Contacts Dirigeants
'
,
domain
=
[(
'
mandate_id
'
,
'
!=
'
,
False
)])
domain
=
[(
'
active
'
,
'
=
'
,
True
),
(
'
mandate_id
'
,
'
!=
'
,
False
)])
child_ids
=
fields
.
One2many
(
'
res.partner
'
,
'
parent_id
'
,
string
=
'
Autres Contacts
'
,
domain
=
[(
'
active
'
,
'
=
'
,
True
),
(
'
mandate_id
'
,
'
=
'
,
False
)])
# Infos générales / Suivi UR
# Infos générales / Suivi UR
ur_id
=
fields
.
Many2one
(
ur_id
=
fields
.
Many2one
(
...
@@ -91,12 +94,12 @@ class ScopPartner(models.Model):
...
@@ -91,12 +94,12 @@ class ScopPartner(models.Model):
creation_delegate_id
=
fields
.
Many2one
(
creation_delegate_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Délégué de création
'
,
string
=
'
Délégué de création
'
,
domain
=
[(
'
user_ids
'
,
'
>
'
,
0
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
user_ids
'
,
'
>
'
,
0
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
followup_delegate_id
=
fields
.
Many2one
(
followup_delegate_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Délégué de suivi
'
,
string
=
'
Délégué de suivi
'
,
domain
=
[(
'
user_ids
'
,
'
>
'
,
0
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
user_ids
'
,
'
>
'
,
0
)],
on_delete
=
'
restrict
'
,
on_delete
=
'
restrict
'
,
track_visibility
=
'
onchange
'
)
track_visibility
=
'
onchange
'
)
...
@@ -155,7 +158,7 @@ class ScopPartner(models.Model):
...
@@ -155,7 +158,7 @@ class ScopPartner(models.Model):
incubator_id
=
fields
.
Many2one
(
incubator_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Incubateur
'
,
string
=
'
Incubateur
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Incubateur
'
)],
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Incubateur
'
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
prescriber_canal_id
=
fields
.
Many2one
(
prescriber_canal_id
=
fields
.
Many2one
(
...
@@ -168,19 +171,19 @@ class ScopPartner(models.Model):
...
@@ -168,19 +171,19 @@ class ScopPartner(models.Model):
bank_id
=
fields
.
Many2one
(
bank_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Banque principale
'
,
string
=
'
Banque principale
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Banque
'
)],
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Banque
'
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
bank2_id
=
fields
.
Many2one
(
bank2_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Banque secondaire
'
,
string
=
'
Banque secondaire
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Banque
'
)],
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Banque
'
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
accountant_id
=
fields
.
Many2one
(
accountant_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Expert-Comptable
'
,
string
=
'
Expert-Comptable
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Expert-Comptable
'
),
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Expert-Comptable
'
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
'
Expert-comptable / Commissaire au compte
'
)],
'
Expert-comptable / Commissaire au compte
'
)],
...
@@ -188,12 +191,12 @@ class ScopPartner(models.Model):
...
@@ -188,12 +191,12 @@ class ScopPartner(models.Model):
accountant_person_id
=
fields
.
Many2one
(
accountant_person_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Expert-Comptable (personne)
'
,
string
=
'
Expert-Comptable (personne)
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
False
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
False
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
auditor_id
=
fields
.
Many2one
(
auditor_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Commissaire aux Comptes
'
,
string
=
'
Commissaire aux Comptes
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Commissaire au compte
'
),
'
Commissaire au compte
'
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
...
@@ -202,7 +205,7 @@ class ScopPartner(models.Model):
...
@@ -202,7 +205,7 @@ class ScopPartner(models.Model):
auditor_person_id
=
fields
.
Many2one
(
auditor_person_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Commissaire aux Comptes (personne)
'
,
string
=
'
Commissaire aux Comptes (personne)
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
False
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
False
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
# Périodes juridiques
# Périodes juridiques
...
@@ -227,7 +230,7 @@ class ScopPartner(models.Model):
...
@@ -227,7 +230,7 @@ class ScopPartner(models.Model):
direccte_id
=
fields
.
Many2one
(
direccte_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
DIRECCTE rattachée
'
,
string
=
'
DIRECCTE rattachée
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
(
'
organization_subtype_id
'
,
'
=
'
,
'
DIRECCTE
'
)],
(
'
organization_subtype_id
'
,
'
=
'
,
'
DIRECCTE
'
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
last_update_status
=
fields
.
Date
(
'
Dernière mise à jour des statuts
'
)
last_update_status
=
fields
.
Date
(
'
Dernière mise à jour des statuts
'
)
...
@@ -254,7 +257,7 @@ class ScopPartner(models.Model):
...
@@ -254,7 +257,7 @@ class ScopPartner(models.Model):
revision_company_id
=
fields
.
Many2one
(
revision_company_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Organisme de révision
'
,
string
=
'
Organisme de révision
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur
'
),
'
Organisme réviseur
'
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
...
@@ -264,7 +267,7 @@ class ScopPartner(models.Model):
...
@@ -264,7 +267,7 @@ class ScopPartner(models.Model):
revision_backup_company_id
=
fields
.
Many2one
(
revision_backup_company_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Organisme de révision suppléant
'
,
string
=
'
Organisme de révision suppléant
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
True
),
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
True
),
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
|
'
,
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur
'
),
'
Organisme réviseur
'
),
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
(
'
organization_subtype_id.name
'
,
'
=
'
,
'
Organisme réviseur,
'
+
...
@@ -273,12 +276,12 @@ class ScopPartner(models.Model):
...
@@ -273,12 +276,12 @@ class ScopPartner(models.Model):
revision_person_id
=
fields
.
Many2one
(
revision_person_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Réviseur
'
,
string
=
'
Réviseur
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
False
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
False
)],
on_delete
=
'
restrict
'
,
track_visibility
=
'
onchange
'
)
on_delete
=
'
restrict
'
,
track_visibility
=
'
onchange
'
)
revision_certified_person_id
=
fields
.
Many2one
(
revision_certified_person_id
=
fields
.
Many2one
(
'
res.partner
'
,
'
res.partner
'
,
string
=
'
Réviseur agréé
'
,
string
=
'
Réviseur agréé
'
,
domain
=
[(
'
is_company
'
,
'
=
'
,
False
)],
domain
=
[
(
'
active
'
,
'
=
'
,
True
),
(
'
is_company
'
,
'
=
'
,
False
)],
on_delete
=
'
restrict
'
)
on_delete
=
'
restrict
'
)
revision_person_assign_date
=
fields
.
Date
(
"
Date de nomination du réviseur
"
,
revision_person_assign_date
=
fields
.
Date
(
"
Date de nomination du réviseur
"
,
track_visibility
=
'
onchange
'
)
track_visibility
=
'
onchange
'
)
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
views/res_partner_cooperative.xml
+
52
−
83
Voir le fichier @
430ff4df
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