Skip to content
Extraits de code Groupes Projets
Valider 3b735646 rédigé par jordan's avatar jordan
Parcourir les fichiers

[update] widget for monetary values and date format

parent d3278df2
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<h2> Appel de cotisation <span t-esc="o.year"/> </h2> <h2> Appel de cotisation <span t-esc="o.year"/> </h2>
<div> <div>
<p> <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>
<p> <p>
N° adhérent : <t t-esc="o.partner_id.member_number_int"/><br/> N° adhérent : <t t-esc="o.partner_id.member_number_int"/><br/>
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<h4>Cotisations annuelles <span t-esc="o.year"/></h4> <h4>Cotisations annuelles <span t-esc="o.year"/></h4>
<t t-if="o.montant_assiette > 0"> <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"/>. Calcul basé sur la dernière liasse fiscale connue : année <t t-esc="o.liasse_fiscale_id.year"/>.
&amp;nbsp;Assiette base <span t-field="o.type_assiette"/> : <t t-esc="o.montant_assiette"/> &amp;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 t-else=""> <t t-else="">
Pas de liasse fiscale connue pour le calcul Pas de liasse fiscale connue pour le calcul
...@@ -61,10 +62,12 @@ ...@@ -61,10 +62,12 @@
Total cotisations annuelles <span t-esc="o.year"/> Total cotisations annuelles <span t-esc="o.year"/>
</td> </td>
<td> <td>
<span t-field="o.amount_total_cotiz"/> <span t-field="o.amount_total_cotiz"/>*
</td> </td>
</tr> </tr>
</table> </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> <h4>Echéancier de prélèvement</h4>
<t t-set="move_line_ids" t-value="o.get_bordereau_move_line()"/> <t t-set="move_line_ids" t-value="o.get_bordereau_move_line()"/>
<table> <table>
...@@ -75,10 +78,10 @@ ...@@ -75,10 +78,10 @@
<t t-foreach="move_line_ids" t-as="line"> <t t-foreach="move_line_ids" t-as="line">
<tr> <tr>
<td> <td>
<span t-esc="line[0]"/> <span t-esc="datetime.datetime.strptime(line[0], '%Y-%m-%d').strftime('%d %B %Y')"/>
</td> </td>
<td> <td>
<span t-esc="line[1]"/> <span t-esc="line[1]" t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'/>
</td> </td>
</tr> </tr>
</t> </t>
......
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