diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 0000000000000000000000000000000000000000..5b6d4b361ace92f3877993bf2848fac190d8fab6 --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,8 @@ +# 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" diff --git a/templates/account_move_template.xml b/templates/account_move_template.xml index 5b92c55754b64d8423df954bface3db489797849..3f1dba5801db857824254bffc7c21c0c1c73fd56 100644 --- a/templates/account_move_template.xml +++ b/templates/account_move_template.xml @@ -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> diff --git a/templates/invoice_table_template.xml b/templates/invoice_table_template.xml index 792849002368f50714a056ced57efcd39ccecc27..b72ae36fcda1f98fc3f914a1ad19cb681f56531b 100644 --- a/templates/invoice_table_template.xml +++ b/templates/invoice_table_template.xml @@ -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> diff --git a/templates/operation_templates_page.xml b/templates/operation_templates_page.xml index d104bf5c6ba3545f7ede015da9688b5ca1fd59b2..0df8190c1a27a0f1f4cf864fed5934db2486d596 100644 --- a/templates/operation_templates_page.xml +++ b/templates/operation_templates_page.xml @@ -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