Skip to content
Extraits de code Groupes Projets
Valider f8b93c06 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[CLN] pre-commit

parent 1481dfcc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Defaults for all prettier-supported languages.
# Prettier will complete this with settings from .editorconfig file.
bracketSpacing: false
printWidth: 88
proseWrap: always
semi: true
trailingComma: "es5"
xmlWhitespaceSensitivity: "strict"
......@@ -14,9 +14,7 @@
class="btn btn-primary mb-2"
t-if="(isProductor or isAdmin or isSuperAdmin) and invoice.state == 'draft'"
>
<i
class="fa fa-fw fa-arrow-circle-right"
/> Valider la facture
<i class="fa fa-fw fa-arrow-circle-right" /> Valider la facture
</a>
</div>
</xpath>
......
......@@ -22,9 +22,7 @@
<th>Période</th>
<th t-out="partner_label" />
<th class="text-center">Montant</th>
<th
class="text-center tooltip-oacc tooltip-oacc-account"
>
<th class="text-center tooltip-oacc tooltip-oacc-account">
Statut <i class="fa fa-info-circle" />
<span
class="tooltiptext"
......@@ -68,10 +66,7 @@
t-att-title="invoice.name"
target="_blank"
>
<t
t-esc="invoice.name"
t-if="invoice.name != '/'"
/>
<t t-esc="invoice.name" t-if="invoice.name != '/'" />
<em
t-elif="invoice.state == 'draft'"
>Facture Brouillon</em>
......@@ -132,17 +127,13 @@
aria-label="En paiement"
title="En paiement"
>
<i
class="fa fa-fw fa-clock-o"
role="img"
/><span>En paiement</span></span>
<i class="fa fa-fw fa-clock-o" role="img" /><span
>En paiement</span></span>
</t>
<t
t-if="invoice.state == 'posted' and invoice.payment_state in ('paid', 'in_payment')"
>
<span
class="badge rounded-pill text-bg-success"
>
<span class="badge rounded-pill text-bg-success">
<i
class="fa fa-fw fa-check-square-o"
aria-label="Payée"
......@@ -153,9 +144,7 @@
<t
t-if="invoice.state == 'posted' and invoice.payment_state == 'reversed'"
>
<span
class="badge rounded-pill text-bg-success"
><i
<span class="badge rounded-pill text-bg-success"><i
class="fa fa-fw fa-check-square-o"
aria-label="Extournée"
title="Extournée"
......@@ -199,11 +188,7 @@
<td t-else="" />
</tr>
<!-- Specific lines for documents -->
<tr
t-if="invoices_ext"
t-foreach="invoices_ext"
t-as="invoice"
>
<tr t-if="invoices_ext" t-foreach="invoices_ext" t-as="invoice">
<!-- Download -->
<td>
<a
......@@ -230,9 +215,7 @@
<!-- Period -->
<td>
<t t-if="invoice.start_date and invoice.end_date">
<t
t-out="invoice.start_date.strftime('%d-%m-%Y')"
/> au <t
<t t-out="invoice.start_date.strftime('%d-%m-%Y')" /> au <t
t-out="invoice.end_date.strftime('%d-%m-%Y')"
/>
</t>
......
......@@ -25,11 +25,7 @@
<div class="col-12 bg-white">
<h3 class="text-center mt-2 text-uppercase">Mes Factures</h3>
<t t-if="contracts or invoices">
<t
t-if="contracts"
t-set="invoices_ext"
t-value="contracts"
/>
<t t-if="contracts" t-set="invoices_ext" t-value="contracts" />
<span
t-if="(isProductor or isAdmin or isSuperAdmin) and any(invoice.state == 'draft' for invoice in invoices)"
>
......@@ -47,9 +43,7 @@
</a>
</span>
<t t-set="partner_label" t-value="'Consommateur/PRM'" />
<t
t-call="oacc_portal_account.operation_invoice_table"
/>
<t t-call="oacc_portal_account.operation_invoice_table" />
</t>
<t t-else="">
<p
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter