Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_cotisation_aura
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_cotisation_aura
Validations
becbc8fe
Valider
becbc8fe
rédigé
23 mars 2022
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[update] new member wizard and contribution template
parent
806eaa2b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
models/scop_cotisation_aura.py
+0
-3
0 ajout, 3 suppressions
models/scop_cotisation_aura.py
views/report_cotisation_aura.xml
+4
-4
4 ajouts, 4 suppressions
views/report_cotisation_aura.xml
wizard/scop_cotisation_aura_wizard.py
+8
-5
8 ajouts, 5 suppressions
wizard/scop_cotisation_aura_wizard.py
avec
12 ajouts
et
12 suppressions
models/scop_cotisation_aura.py
+
0
−
3
Voir le fichier @
becbc8fe
...
...
@@ -444,9 +444,6 @@ class ScopCotisationAura(models.Model):
(
'
type_id
'
,
'
=
'
,
'
lm
'
),
(
'
is_qualified
'
,
'
=
'
,
True
)
],
order
=
'
create_date desc
'
,
limit
=
1
)
if
len
(
liasse_id
)
>
1
:
print
(
member
.
name
)
print
(
member
.
id
)
return
liasse_id
# ------------------------------------------------------
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
views/report_cotisation_aura.xml
+
4
−
4
Voir le fichier @
becbc8fe
...
...
@@ -8,13 +8,13 @@
<template
id=
"scop_report_cotisation_aura"
inherit_id=
"cgscop_account.scop_report_invoice_document"
>
<xpath
expr=
"//div[@name='hook_page']"
position=
"after"
>
<div
t-elif=
"o.type == 'out_invoice' and o.journal_id == o.company_id.contribution_journal_id and o.company_id.is_contribution_aura"
class=
"page
mt32
"
style=
"text-align: justify;"
>
<div
id=
"informations"
class=
"mt
32
mb
32
"
style=
"font-size: 1
4
px; text-align: justify"
>
class=
"page"
style=
"text-align: justify;"
>
<div
id=
"informations"
class=
"mt
16
mb
16
"
style=
"font-size: 1
3
px; text-align: justify"
>
<div
class=
"col-12"
>
<h2
t-if=
"o.state == 'draft'"
>
Brouillon
</h2>
<p
style=
"font-size: 1
6
px;"
>
<p
style=
"font-size: 1
5
px;"
>
<strong>
Appel de cotisation Union Régionale AURA
<span
t-esc=
"str(o.year)"
/><br/>
N°
<span
t-field=
"o.number"
/>
...
...
@@ -86,7 +86,7 @@
<p>
Nous vous prions d’agréer, Madame, Monsieur, l’expression de nos sincères salutations.
</p>
<p
class=
"mt
32
"
>
<p
class=
"mt
16
"
>
Isabelle TREFFOT,
<br/>
Responsable administratif et financier.
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
wizard/scop_cotisation_aura_wizard.py
+
8
−
5
Voir le fichier @
becbc8fe
...
...
@@ -43,15 +43,18 @@ class ScopCotisationWizard(models.TransientModel):
def
onchange_domain_partner_ids
(
self
):
if
self
.
type
==
'
selected
'
:
id_cotisation_aura
=
self
.
env
.
context
[
'
id_cotisation_aura
'
]
invoiced_members_ids
=
self
.
cotisation_aura_id
.
browse
(
id_cotisation_aura
).
invoice_ids
.
mapped
(
'
partner_id
'
)
member_invoiced_ids
=
self
.
cotisation_aura_id
.
browse
(
id_cotisation_aura
).
invoice_ids
.
mapped
(
'
partner_id
'
)
member_to_invoice_ids
=
self
.
cotisation_aura_id
.
browse
(
id_cotisation_aura
).
get_new_members
()
-
member_invoiced_ids
print
(
member_to_invoice_ids
)
res
=
{
'
domain
'
:
{
'
partner_ids
'
:
[
(
'
ur_id
'
,
'
=
'
,
self
.
env
.
user
.
company_id
.
ur_id
.
id
),
(
'
is_company
'
,
'
=
'
,
True
),
(
'
id
'
,
'
not in
'
,
invoiced_members_ids
.
mapped
(
'
id
'
))]
}}
(
'
is_cooperative
'
,
'
=
'
,
True
),
(
'
id
'
,
'
in
'
,
member_to_invoice_ids
.
ids
)]
}
}
return
res
# ------------------------------------------------------
...
...
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