Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_cotisation
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
Validations
83dd7658
Valider
83dd7658
rédigé
Il y a 3 ans
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[update] payment display
parent
e5983db8
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
migration/14.0.1.0.0/pre-migration.py
+1
-0
1 ajout, 0 suppression
migration/14.0.1.0.0/pre-migration.py
report/scop_contribution_report.py
+15
-15
15 ajouts, 15 suppressions
report/scop_contribution_report.py
avec
16 ajouts
et
15 suppressions
migration/14.0.1.0.0/pre-migration.py
+
1
−
0
Voir le fichier @
83dd7658
...
@@ -7,6 +7,7 @@ column_renames = {
...
@@ -7,6 +7,7 @@ column_renames = {
"
scop_cotisation
"
:
[(
"
year
"
,
None
)],
"
scop_cotisation
"
:
[(
"
year
"
,
None
)],
}
}
# TODO: migrer lf_note_ref dans ref
@openupgrade.migrate
()
@openupgrade.migrate
()
def
migrate
(
env
,
version
):
def
migrate
(
env
,
version
):
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
report/scop_contribution_report.py
+
15
−
15
Voir le fichier @
83dd7658
...
@@ -198,8 +198,7 @@ class ScopContributionReport(models.Model):
...
@@ -198,8 +198,7 @@ class ScopContributionReport(models.Model):
payments_html
=
False
payments_html
=
False
if
self
.
source
==
"
odoo
"
:
if
self
.
source
==
"
odoo
"
:
invoice_ids
=
self
.
get_invoice_contribution
()
invoice_ids
=
self
.
get_invoice_contribution
()
# TODO: trouver le nouveau champ payment_move_line_ids
payment_ids
=
invoice_ids
.
mapped
(
"
move_line_payment_ids
"
)
payment_ids
=
invoice_ids
.
mapped
(
"
payment_move_line_ids
"
)
if
payment_ids
:
if
payment_ids
:
payments
=
payment_ids
.
mapped
(
payments
=
payment_ids
.
mapped
(
lambda
p
:
{
lambda
p
:
{
...
@@ -230,19 +229,7 @@ class ScopContributionReport(models.Model):
...
@@ -230,19 +229,7 @@ class ScopContributionReport(models.Model):
self
.
env
[
"
account.move
"
]
self
.
env
[
"
account.move
"
]
.
sudo
()
.
sudo
()
.
search
(
.
search
(
[
self
.
_get_contribution_domain
()
(
"
year
"
,
"
=
"
,
int
(
self
.
year
)),
(
"
partner_id
"
,
"
=
"
,
self
.
partner_id
.
id
),
(
"
type_contribution_id
"
,
"
=
"
,
self
.
type_contribution_id
.
id
,
),
(
"
type
"
,
"
=
"
,
"
out_invoice
"
),
"
|
"
,
(
"
bordereau_id.state
"
,
"
not in
"
,
(
"
cancel
"
,)),
(
"
bordereau_id
"
,
"
=
"
,
False
),
]
)
)
)
)
return
invoice_ids
return
invoice_ids
...
@@ -281,3 +268,16 @@ class ScopContributionReport(models.Model):
...
@@ -281,3 +268,16 @@ class ScopContributionReport(models.Model):
end_html
=
"
</tbody></table>
"
end_html
=
"
</tbody></table>
"
return
start_html
+
content_html
+
end_html
return
start_html
+
content_html
+
end_html
def
_get_contribution_domain
(
self
):
return
[
(
"
year
"
,
"
=
"
,
int
(
self
.
year
)),
(
"
partner_id
"
,
"
=
"
,
self
.
partner_id
.
id
),
(
"
type_contribution_id
"
,
"
=
"
,
self
.
type_contribution_id
.
id
,
),
(
"
move_type
"
,
"
=
"
,
"
out_invoice
"
),
(
"
state
"
,
"
=
"
,
"
posted
"
),
]
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