Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7128 Visualizzazioni

I have created a custom module . My footer in the reports is not fixed in footers I have tried several solutions but nothing, either it goes up or it decent towards the next page if my sale order contains several products. If my sale order is composed of two pages my footer is displayed on the second page only because it is breaking down.I'm using odoo 9 .Any help please ?

 <div class="footer">

                <div class="text-center" style="border-top: 1px solid black;">
  <small>
                        <ul t-if="not company.custom_footer" class="list-inline">
                            <li t-if="company.phone">Phone:
                                <span t-field="company.phone"/>
                            </li>


                            <li t-if="company.fax and company.phone">&amp;bull;</li>

                            <li t-if="company.fax">Fax:
                                <span t-field="company.fax"/>
                            </li>


                            <li t-if="company.email and company.fax or company.email and company.phone">
                                &amp;bull;
                            </li>

                            <li t-if="company.vat">TVA:
                                <span t-field="company.vat"/>
                            </li>


                            <li t-if="company.company_registry">&amp;bull;</li>
                            <li t-if="company.company_registry">RC:
                                <span t-field="company.company_registry"/>
                            </li>

                        </ul>
                    </small>
  <small>
                              <ul class="list-inline">
                            <t t-set="nbr_page" t-value="1"/>
                            <li>Page:</li>
                            <t t-set="compteur" t-value="nbr_page+1"/>
                            <li>
                                <span class="page"/>
                                <t t-esc="nbr_page"/>
                            </li>
                            /
                            <t t-esc="nbr_page"/>
                            <li>
                                <span class="topage"/>
                            </li>
                        </ul>
                    </small>



                <t t-set="nbr_page" t-value="1"/>

                    <t t-set="compteur" t-value="nbr_page+1"/>
                    <!--<t t-esc="nbr_page"/>-->

                <!--<t t-if="company.custom_footer">-->
                    <!--<span t-raw="company.rml_footer"/>-->
                <!--</t>-->
            </div>
Avatar
Abbandona
Risposta migliore

why its happening, maybe you customized reports in wrong way, try to add CSS style to footer by in a style tag

Avatar
Abbandona
Autore

Thank you i have added a style in <div class="footer" style="position:absolute;bottom:-1115px"> and it became fixe. But i have a new problem when my sale order is composed of 2 pages my footer will be display only in the first page. Could you help me please ?

just revert all your custom changes done on the report as styles. Odoo has no problem to display footer on fixed positions and it can also display on all pages

Post correlati Risposte Visualizzazioni Attività
0
ago 17
4018
0
lug 17
3645
0
mag 16
3145
1
dic 15
6787
1
mar 22
7394