Skip to Content
Menu
This question has been flagged
1 Reply
5854 Views

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
Discard
Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
0
Aug 17
3179
0
Jul 17
2522
0
May 16
2191
1
Dec 15
5953
1
Mar 22
6087