From 3b7356460b6099dfc30e18085547375b30b3b700 Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Tue, 23 Feb 2021 16:07:27 +0100 Subject: [PATCH] [update] widget for monetary values and date format --- report/report_scop_bordereau.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/report/report_scop_bordereau.xml b/report/report_scop_bordereau.xml index dcf3cd4..a4e1923 100644 --- a/report/report_scop_bordereau.xml +++ b/report/report_scop_bordereau.xml @@ -8,7 +8,7 @@ <h2> Appel de cotisation <span t-esc="o.year"/> </h2> <div> <p> - Paris, le <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d-%m-%Y')"/> + Paris, le <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d %B %Y')"/> </p> <p> N° adhérent : <t t-esc="o.partner_id.member_number_int"/><br/> @@ -37,7 +37,8 @@ <h4>Cotisations annuelles <span t-esc="o.year"/></h4> <t t-if="o.montant_assiette > 0"> Calcul basé sur la dernière liasse fiscale connue : année <t t-esc="o.liasse_fiscale_id.year"/>. - &nbsp;Assiette base <span t-field="o.type_assiette"/> : <t t-esc="o.montant_assiette"/>€ + &nbsp;Assiette base <span t-field="o.type_assiette"/> : + <t t-esc="o.montant_assiette" t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'/> </t> <t t-else=""> Pas de liasse fiscale connue pour le calcul @@ -61,10 +62,12 @@ Total cotisations annuelles <span t-esc="o.year"/> </td> <td> - <span t-field="o.amount_total_cotiz"/> + <span t-field="o.amount_total_cotiz"/>* </td> </tr> </table> + * Inclus abonnement annuel à la Revue Participer au tarif préférentiel adhérent de 22 € TTC + <h4>Echéancier de prélèvement</h4> <t t-set="move_line_ids" t-value="o.get_bordereau_move_line()"/> <table> @@ -75,10 +78,10 @@ <t t-foreach="move_line_ids" t-as="line"> <tr> <td> - <span t-esc="line[0]"/> + <span t-esc="datetime.datetime.strptime(line[0], '%Y-%m-%d').strftime('%d %B %Y')"/> </td> <td> - <span t-esc="line[1]"/> + <span t-esc="line[1]" t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'/> </td> </tr> </t> -- GitLab