Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6560 Переглядів

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>
Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

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 Відповіді Переглядів Дія
0
серп. 17
3575
0
лип. 17
3101
0
трав. 16
2729
1
груд. 15
6442
1
бер. 22
6805