Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_instance
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_instance
Validations
30581738
Valider
30581738
rédigé
25 août 2021
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[update] report
parent
0d1b4f43
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
models/scop_instance.py
+3
-2
3 ajouts, 2 suppressions
models/scop_instance.py
report/report_scop_instance_adhesion.xml
+14
-7
14 ajouts, 7 suppressions
report/report_scop_instance_adhesion.xml
avec
17 ajouts
et
9 suppressions
models/scop_instance.py
+
3
−
2
Voir le fichier @
30581738
...
...
@@ -92,11 +92,12 @@ class ScopInstance(models.Model):
ur_global
=
partners_lm
.
read_group
(
domain
=
[(
'
id
'
,
'
in
'
,
partners_lm
.
ids
)],
fields
=
[
'
ur_id
'
],
groupby
=
[
'
ur_id
'
,
'
eff_
etp
'
,
'
eff_sal_assoc
'
],
fields
=
[
'
ur_id
'
,
'
coop_form_id
'
],
groupby
=
[
'
ur_id
'
,
'
coop_form_id
'
,
'
eff_
tt
'
,
'
eff_sal_assoc
'
],
orderby
=
'
ur_id
'
,
lazy
=
False
)
print
(
ur_global
)
datas_stats_global
=
{
'
ur_global
'
:
ur_global
,
'
partners
'
:
partners_lm
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
report/report_scop_instance_adhesion.xml
+
14
−
7
Voir le fichier @
30581738
...
...
@@ -31,6 +31,7 @@
<thead>
<tr>
<th
scope=
"col"
>
UR
</th>
<th
scope=
"col"
>
Forme coopérative
</th>
<th
scope=
"col"
>
Coopératives
</th>
<th
scope=
"col"
>
Salariés
</th>
<th
scope=
"col"
>
Associés
</th>
...
...
@@ -40,8 +41,9 @@
<t
t-foreach=
"datas.get('ur_global')"
t-as=
"datas_per_ur"
>
<tr>
<td><t
t-esc=
"datas_per_ur.get('ur_id')[1]"
/></td>
<td><t
t-esc=
"datas_per_ur.get('coop_form_id')[1]"
/></td>
<td><t
t-esc=
"datas_per_ur.get('__count')"
/></td>
<td><t
t-esc=
"datas_per_ur.get('eff_
etp
')"
/></td>
<td><t
t-esc=
"datas_per_ur.get('eff_
tt
')"
/></td>
<td><t
t-esc=
"datas_per_ur.get('eff_sal_assoc')"
/></td>
</tr>
</t>
...
...
@@ -49,8 +51,9 @@
<tfoot>
<tr>
<td>
TOTAL
</td>
<td></td>
<td><t
t-esc=
"sum(list(map(lambda c: c.get('__count'), datas.get('ur_global'))))"
/></td>
<td><t
t-esc=
"sum(list(map(lambda c: c.get('eff_
etp
'), datas.get('ur_global'))))"
/></td>
<td><t
t-esc=
"sum(list(map(lambda c: c.get('eff_
tt
'), datas.get('ur_global'))))"
/></td>
<td><t
t-esc=
"sum(list(map(lambda c: c.get('eff_sal_assoc'), datas.get('ur_global'))))"
/></td>
</tr>
</tfoot>
...
...
@@ -81,9 +84,11 @@
<th
scope=
"col"
>
Raison sociale
</th>
<th
scope=
"col"
>
CP
</th>
<th
scope=
"col"
>
Ville
</th>
<th
scope=
"col"
>
Effectif
s salariés
</th>
<th
scope=
"col"
>
Effectif
total
</th>
<th
scope=
"col"
>
Salariés associés
</th>
<th
scope=
"col"
>
Capital (en €)
</th>
<th
scope=
"col"
>
Capital
</th>
<th
scope=
"col"
>
CA
</th>
<th
scope=
"col"
>
VA
</th>
<th
scope=
"col"
>
Origine de création
</th>
<th
scope=
"col"
>
NAF
</th>
<th
scope=
"col"
>
Objet social
</th>
...
...
@@ -98,9 +103,11 @@
<td><t
t-esc=
"partner.partner_id.name"
/></td>
<td><t
t-esc=
"partner.zip"
/></td>
<td><t
t-esc=
"partner.city"
/></td>
<td><t
t-esc=
"partner.eff_
etp
"
/></td>
<td><t
t-esc=
"partner.eff_
tt
"
/></td>
<td><t
t-esc=
"partner.eff_sal_assoc"
/></td>
<td><t
t-esc=
"partner.cap_tt"
/></td>
<td><t
t-esc=
"partner.cap_tt"
t-options=
"{'widget': 'float', 'precision': 0}"
/>
€
</td>
<td><t
t-esc=
"partner.scop_liasse_fiscale_id.revenue_cg"
t-options=
"{'widget': 'float', 'precision': 0}"
/>
€
</td>
<td><t
t-esc=
"partner.scop_liasse_fiscale_id.av_cg"
t-options=
"{'widget': 'float', 'precision': 0}"
/>
€
</td>
<td><t
t-esc=
"partner.creation_origin_id"
/></td>
<td><t
t-esc=
"partner.code_naf"
/></td>
<td><t
t-esc=
"partner.social_object"
/></td>
...
...
@@ -117,7 +124,7 @@
<t
t-esc=
"len(partner_ids)"
/>
coop(s)
</td>
<td><t
t-esc=
"sum(list(partner_ids.mapped('eff_etp')))"
/></td>
<td><t
t-esc=
"sum(list(partner_ids.mapped('eff_sal_assoc')))"
/></td>
<td
colspan=
"
6
"
/>
<td
colspan=
"
8
"
/>
</tr>
</tfoot>
</table>
...
...
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