Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
A
acc_account
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
Ce projet est archivé. Le dépôt et les autres ressources du projet sont en lecture seule.
Afficher davantage de fils d'Ariane
Le Filament
Opération Auto-Consommation Collective
acc_account
Validations
d88abf86
Valider
d88abf86
rédigé
Il y a 2 ans
par
Juliana
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[UPD]Update template invoice
parent
a566a3fe
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/acc_account.py
+12
-2
12 ajouts, 2 suppressions
models/acc_account.py
report/account_template.xml
+17
-10
17 ajouts, 10 suppressions
report/account_template.xml
avec
29 ajouts
et
12 suppressions
models/acc_account.py
+
12
−
2
Voir le fichier @
d88abf86
...
...
@@ -108,6 +108,12 @@ class AccAccount(models.Model):
readonly
=
True
,
compute
=
"
_compute_amount
"
,
)
amount_divers_tot
=
fields
.
Monetary
(
string
=
"
Montant Total Divers HT
"
,
store
=
True
,
readonly
=
True
,
compute
=
"
_compute_amount
"
,
)
power_cons
=
fields
.
Float
(
"
Consommation locale (index Enedis)
"
,
digits
=
"
Unité de Mesure
"
)
...
...
@@ -185,14 +191,17 @@ class AccAccount(models.Model):
tot_qty
=
0.0
tot_accise
=
0.0
tot_elec
=
0.0
tot_divers
=
0.0
for
line
in
move
.
line_ids
:
total
+=
line
.
price_total
tot_qty
+=
line
.
quantity
if
line
.
is_tax
:
if
line
.
is_tax
and
line
.
acc_injection_id
:
tot_accise
+=
line
.
price_total
el
se
:
el
if
line
.
acc_injection_id
:
tot_elec
+=
line
.
price_total
else
:
tot_divers
+=
line
.
price_total
if
move
.
is_tva
and
move
.
tax_id
:
total_tax
=
(
total
*
move
.
tax_id
.
amount
)
/
100
...
...
@@ -202,6 +211,7 @@ class AccAccount(models.Model):
move
.
amount_total
=
total
+
total_tax
move
.
amount_accise_tot
=
tot_accise
move
.
amount_elec_tot
=
tot_elec
move
.
amount_divers_tot
=
tot_divers
def
_compute_url
(
self
):
"""
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
report/account_template.xml
+
17
−
10
Voir le fichier @
d88abf86
...
...
@@ -202,7 +202,7 @@
alt=
"Logo"
/>
</t>
<t
t-else=
""
><h4
t-
esc
=
"o.producer_id.name"
/></t>
<t
t-else=
""
><h4
t-
field
=
"o.producer_id.name"
/></t>
</div>
<div
class=
"col-8 text-center"
>
...
...
@@ -387,6 +387,13 @@
>
HT
</span>
</td>
</tr>
<tr>
<td>
Total Frais Divers / Régularisation
</td>
<td
class=
"text-right"
>
<span
t-field=
"o.amount_divers_tot"
/>
<span
>
HT
</span>
</td>
</tr>
<tr>
<td
/>
<td
/>
...
...
@@ -395,6 +402,7 @@
<td
/>
<td
/>
</tr>
<t
t-if=
"o.is_tva"
>
<tr>
<td><strong><h5
>
Total H.T.
</h5></strong></td>
...
...
@@ -402,7 +410,6 @@
<h4
t-field=
"o.amount_untaxed"
/>
</td>
</tr>
<t
t-if=
"o.is_tva"
>
<tr
style=
""
>
<t>
<td><span
...
...
@@ -478,7 +485,7 @@
alt=
"Logo"
/>
</t>
<t
t-else=
""
><h4
t-
esc
=
"o.producer_id.name"
/></t>
<t
t-else=
""
><h4
t-
field
=
"o.producer_id.name"
/></t>
</div>
<div
class=
"col-8"
></div>
</div>
...
...
@@ -669,7 +676,7 @@
alt=
"Logo"
/>
</t>
<t
t-else=
""
><h4
t-
esc
=
"o.producer_id.name"
/></t>
<t
t-else=
""
><h4
t-
field
=
"o.producer_id.name"
/></t>
</div>
<div
class=
"col-8"
></div>
</div>
...
...
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