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

Can u please help me to add the header and footer in the rml file or is there any tag for it.

Аватар
Отменить

If your report not printing header, then add header = 'external' in report. Or go -> settings-> technical->actions->report -> open your report, mark header field. and It will show you header. else "-Go to "Settings" -Choose "Company"; select your company manage your header

Лучший ответ

http ://help.openerp.com/question/16327/how-to-add-endnote-in-rml-report/

"-Go to "Settings" -Choose "Company"; select your company

You can customize the footer on the bottem field on the initial screen

-Choose the "Footer/header-text" tab

You can edit the header (and footer) text here; you can view your changes by using the preview button on the top right hand corner of this screen."

Аватар
Отменить
Автор

thanks it works

Please mark this answer as correct, will help the others when they try to find an answer

Can u please give the details am new this

Лучший ответ

-

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

Set header=False in report tag.

report_sxw.report_sxw(
    'report.account.invoice',
    'account.invoice',
    'addons/account/report/account_print_invoice.rml',
    parser=account_invoice,header=False
)

This will block the default header/footer at settings -->companies--> companies-->header/footer to appear in the report.

Peplace the rml code with the below one:

<template pageSize="(595.0,842.0)" title="Invoices" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20">

       <pageTemplate id="first">

             ***Your custom rml header & footer***

       </pageTemplate>

</template>

Аватар
Отменить