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
Déploiement
Registre de paquets
Opération
Modules Terraform
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_cotisation
Validations
5677ce33
Valider
5677ce33
rédigé
Il y a 3 ans
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[FIX] error access rights
parent
39ed1bd5
Aucune branche associée trouvée
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é
report/scop_contribution_report.py
+2
-2
2 ajouts, 2 suppressions
report/scop_contribution_report.py
avec
2 ajouts
et
2 suppressions
report/scop_contribution_report.py
+
2
−
2
Voir le fichier @
5677ce33
...
@@ -147,7 +147,7 @@ class ScopContributionReport(models.Model):
...
@@ -147,7 +147,7 @@ class ScopContributionReport(models.Model):
# Business functions
# Business functions
# ------------------------------------------------------
# ------------------------------------------------------
def
_get_is_loss
(
self
):
def
_get_is_loss
(
self
):
invoice_ids
=
self
.
env
[
'
account.invoice
'
].
search
([
invoice_ids
=
self
.
env
[
'
account.invoice
'
].
sudo
().
search
([
(
'
year
'
,
'
=
'
,
int
(
self
.
year
)),
(
'
year
'
,
'
=
'
,
int
(
self
.
year
)),
(
'
partner_id
'
,
'
=
'
,
self
.
partner_id
.
id
),
(
'
partner_id
'
,
'
=
'
,
self
.
partner_id
.
id
),
(
'
type_contribution_id
'
,
'
=
'
,
self
.
type_contribution_id
.
id
),
(
'
type_contribution_id
'
,
'
=
'
,
self
.
type_contribution_id
.
id
),
...
@@ -160,7 +160,7 @@ class ScopContributionReport(models.Model):
...
@@ -160,7 +160,7 @@ class ScopContributionReport(models.Model):
def
_get_payment
(
self
):
def
_get_payment
(
self
):
self
.
ensure_one
()
self
.
ensure_one
()
invoice_ids
=
self
.
env
[
'
account.invoice
'
].
search
([
invoice_ids
=
self
.
env
[
'
account.invoice
'
].
sudo
().
search
([
(
'
year
'
,
'
=
'
,
int
(
self
.
year
)),
(
'
year
'
,
'
=
'
,
int
(
self
.
year
)),
(
'
partner_id
'
,
'
=
'
,
self
.
partner_id
.
id
),
(
'
partner_id
'
,
'
=
'
,
self
.
partner_id
.
id
),
(
'
type_contribution_id
'
,
'
=
'
,
self
.
type_contribution_id
.
id
),
(
'
type_contribution_id
'
,
'
=
'
,
self
.
type_contribution_id
.
id
),
...
...
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