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

Hello

Is there a way in Odoo 16 enterprise to put the general terms and conditions on a separate page ?

Currently we only see the option to put it on the bottom of documents or link to the website

Can this be changed with Odoo studio or only by customization ?

Regards


Аватар
Отменить
Лучший ответ

Hi,

By default Odoo have no feature to do this. Instead we can handle this by inheriting the template.

For example :

Here is the inheritance of invoice report  template.


<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <data>

        <template id="custom_report_invoice_document"

                  inherit_id="account.report_invoice_document">

            <xpath expr="//div[@class='page mb-4']" position="inside">

                <!-- This will add a page break before the terms and conditions -->

                <div class="page-break"

                     style="page-break-before: always;"></div>

            </xpath>

            <xpath expr="//div[@name='comment']" position="before">

                <div class="page-break"

                     style="page-break-before: always;"></div>

            </xpath>

        </template>

    </data>

</odoo>


Hope it helps

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июл. 23
2915
1
авг. 24
1641
3
апр. 24
7781
0
апр. 24
1111
0
апр. 24
1111