Skip to content
Extraits de code Groupes Projets
report_scop_exo.xml 7,17 ko
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0" encoding="utf-8" ?>
    
    <odoo>
        <data>
    
            <template id="report_exo_coop_document">
                <t t-call="web.external_layout">
                    <t t-set="o" t-value="o.with_context(lang='fr')" />
    
                    <div class="page" style="font-size: 15px;">
    
    
                        <div class="row">
    
                            <div class="col-6 offset-6 oe_mt64 oe_mb64">
    
                                <span t-field="o.partner_id.name" style="text-transform: uppercase; font-weight: 600;" />
                                <br />
                                <span t-field="o.partner_id.street" />
                                <br />
                                <t t-if="o.partner_id.street2">
                                    <span t-field="o.partner_id.street2" />
                                    <br />
                                </t>
                                <t t-if="o.partner_id.street3">
                                    <span t-field="o.partner_id.street3" />
                                    <br />
                                </t>
                                <span t-field="o.partner_id.zip" /> <span t-field="o.partner_id.city" style="text-transform: uppercase;" />
                                <t t-if="o.partner_id.cedex">
                                    <span t-field="o.partner_id.cedex" />
                                </t>
    
                            </div>
                        </div>
                        <div class="row">
    
                            <div class="col-12 oe_mb32">
    
                                    Paris, le <span t-esc="o.date_exo_ok" t-options="{'widget': 'date', 'format': 'dd/MM/YYYY'}" />
    
                                </p>
                                <p>
    
                                    Objet : Demande d'exonération de cotisations
                                    <br />
                                    N° adhérent : <t t-esc="str(o.partner_id.member_number_int)" />
                                    <br />
    
                                    N° exonération : <span t-esc="o.number" />
    
                                </p>
    
                                <p>Copie : <t t-esc="o.partner_id.ur_id.name" /></p>
    
                            </div>
                        </div>
    
                        <div class="row oe_mb16">
    
                            <div class="col-12" style="test-align: justify;">
    
                                <p class="oe_mb32">Chère Coopératrice, Cher Coopérateur,</p>
    
                                <!-- Avis Favorable-->
                                <t t-if="o.final_notice == 'favorable'">
                                    <p>
    
                                        Pour faire suite à votre dernier courrier, Le Bureau de la Direction Nationale qui s’est réuni le <span t-esc="o.instance_id.date" t-options="{'widget': 'date', 'format': 'dd/MM/YYYY'}" />, a décidé de vous accorder une exonération exceptionnelle de vos cotisations confédérales.
                                    </p>
                                    <p>
                                        Le Bureau a acté les modalités suivantes :
    
                                        <t t-if="(o.type_exo == 'percent' and o.percent_quarter == 100) or (o.type_exo == 'amount' and o.amount_quarter == 0)">
    
                                            Exonération totale des cotisations pour la période du
                                        </t>
                                        <t t-else="">
                                            <!-- Réduction des échéances-->
                                            <t t-if="o.type_exo == 'percent'">
    
                                                Exonération de <span t-field="o.percent_quarter" />% du montant des échéances trimestrielles sur la période du
    
                                            </t>
                                            <!-- Montant fixe des échéances-->
                                            <t t-if="o.type_exo == 'amount'">
    
                                                Un montant des prochaines échéances fixé à <span t-field="o.amount_quarter" t-options="{'widget': 'monetary', 'display_currency': o.partner_id.currency_id}" /> pour la période du
    
                                            <t t-if="o.nb_quarter == 1">
                                                <span t-field="o.quarter_exo_start" /> <span t-field="o.year_exo_start" />
                                            </t>
    
                                                <span t-field="o.quarter_exo_start" /> <span t-field="o.year_exo_start" /> au <span t-field="o.quarter_exo_end" /> <span t-field="o.year_exo_end" />
    
                                             (du <span t-field="o.date_exo_start" /> au <span t-field="o.date_exo_end" /> inclus).
    
                                    <p t-if="o.head_office_comment">
    
                                        <span t-field="o.head_office_comment" />
    
                                </t>
    
                                <!-- Avis Défavorable-->
                                <t t-if="o.final_notice == 'unfavorable'">
    
                                    <p>
                                        Pour faire suite à votre dernier courrier, Le Bureau de la Direction Nationale qui s’est réuni le<span t-esc="o.instance_id.date" t-options="{'widget': 'date', 'format': 'd MMMM YYYY'}" /> a décidé de ne pas accorder d'exonération exceptionnelle de vos cotisations confédérales pour la raison suivante :
                                    </p>
    
                                        <t t-esc="o.head_office_comment" />
    
                                <p>Je vous prie de croire, Chère Coopératrice, Cher Coopérateur, en l’assurance de toute ma considération coopérative.</p>
                                <p></p>
                                <p style="margin-top: 120px;">Le Président, Jacques LANDRIOT</p>
    
                           </div>
                        </div>
                    </div>
                </t>
            </template>
    
            <template id="report_exo">
                <t t-call="web.html_container">
    
                    <t t-set="docs" t-value="docs.with_context(lang='fr')" />
    
                    <t t-foreach="docs" t-as="o">
    
                        <t t-call="cgscop_cotisation_cg_exo.report_exo_coop_document" t-lang="fr" />
    
                    </t>
                </t>
            </template>
    
            <!-- QWeb Reports -->
    
            <record id="cgscop_exo_report" model="ir.actions.report">
    
                <field name="name">CG Scop - Courrier d'exonération</field>
    
                <field name="model">scop.cotisation.cg.exo</field>
                <field name="report_type">qweb-pdf</field>
                <field name="report_name">cgscop_cotisation_cg_exo.report_exo</field>
                <field name="report_file">cgscop_cotisation_cg_exo.report_exo</field>
            </record>
    
    
        </data>
    </odoo>