Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_adhesion
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
Le Filament
Confédération Générale des SCOP
cgscop_adhesion
Validations
3cb03789
Valider
3cb03789
rédigé
2 févr. 2022
par
jordan
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[update] add invoice_adhesion_id in res_partner model + update scop_valid_cg to use it
parent
301fa9bb
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
models/res_partner.py
+19
-8
19 ajouts, 8 suppressions
models/res_partner.py
avec
19 ajouts
et
8 suppressions
models/res_partner.py
+
19
−
8
Voir le fichier @
3cb03789
...
@@ -58,6 +58,9 @@ class ScopPartner(models.Model):
...
@@ -58,6 +58,9 @@ class ScopPartner(models.Model):
string
=
"
Année dossier adhésion
"
,
string
=
"
Année dossier adhésion
"
,
related
=
'
lm_adhesion_id.year
'
related
=
'
lm_adhesion_id.year
'
)
)
invoice_adhesion_id
=
fields
.
Many2one
(
comodel_name
=
'
account.invoice
'
,
string
=
'
Facture d
\'
adhésion
'
)
# Dossier UE
# Dossier UE
file_fse_open
=
fields
.
Boolean
(
"
Dossier FSE ouvert Oui/Non
"
)
file_fse_open
=
fields
.
Boolean
(
"
Dossier FSE ouvert Oui/Non
"
)
...
@@ -490,13 +493,14 @@ class ScopPartner(models.Model):
...
@@ -490,13 +493,14 @@ class ScopPartner(models.Model):
- create period adhesion CG
- create period adhesion CG
- create period adhesion Fédé if needed
- create period adhesion Fédé if needed
- create invoice adhesion
- create invoice adhesion
- se
nd email to coop (letter and invoice adhesion on extranet)
- se
t liasse_fiscale_adhesion as qualified
"""
"""
# Important to call get_lm_adhesion() first so we can use specific
# adhesion process to create lm if needed instead of process define
if
not
self
.
lm_adhesion_id
:
# in cgscop_liste_ministere module
raise
ValidationError
(
lm_adhesion
=
self
.
get_lm_adhesion
()
'
Cette coopérative n
\'
a pas de dossier d
\'
inscription
'
)
super
(
ScopPartner
,
self
).
scop_valid_cg
()
res
=
super
(
ScopPartner
,
self
).
scop_valid_cg
()
# Create period adhésions with num adherent
# Create period adhésions with num adherent
num_adherent
=
self
.
create_num_adherent
()
num_adherent
=
self
.
create_num_adherent
()
...
@@ -505,8 +509,15 @@ class ScopPartner(models.Model):
...
@@ -505,8 +509,15 @@ class ScopPartner(models.Model):
# TODO : check pour fede CAE si coop is CAE ?
# TODO : check pour fede CAE si coop is CAE ?
# Create invoice adhésion
# Create invoice adhésion
invoice
=
self
.
create_invoice_adhesion
(
lm_adhesion
)
invoice
=
self
.
create_invoice_adhesion
(
self
.
lm_adhesion_id
)
return
invoice
self
.
invoice_adhesion_id
=
invoice
# set liasse_fiscale_adhesion as qualified
self
.
lm_adhesion_id
.
scop_liasse_fiscale_id
.
write
({
'
is_qualified
'
:
True
})
return
res
class
ResPartnerPrescriberCanal
(
models
.
Model
):
class
ResPartnerPrescriberCanal
(
models
.
Model
):
...
...
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