Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6546 Представления

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
3542
0
июл. 17
3093
0
мая 16
2713
1
дек. 15
6438
1
мар. 22
6791