Create Custome Header Footer
Create Simple template For Header Footer as below
<template id="header_footer_id">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<t t-call="modulename.header_id" />
<t t-raw="0" />
<t t-call="modulename.footer_id" />
</template>
Create Header
<template id="header_id">
<div class="header">
//Your Code
</div>
</template>
Create Footer
<template id="footer_id">
<div class="footer">
//Your Code
</div>
</template>
Create Report custome report or inherited report
<template id="your_report_id">
<t t-foreach="docs" t-as="o">
<t t-call="modulename.header_footer_id">
<div class="page">
//Your Code
</div>
</t>
</t>
</template>
Create Simple template For Header Footer as below
<template id="header_footer_id">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<t t-call="modulename.header_id" />
<t t-raw="0" />
<t t-call="modulename.footer_id" />
</template>
Create Header
<template id="header_id">
<div class="header">
//Your Code
</div>
</template>
Create Footer
<template id="footer_id">
<div class="footer">
//Your Code
</div>
</template>
Create Report custome report or inherited report
<template id="your_report_id">
<t t-foreach="docs" t-as="o">
<t t-call="modulename.header_footer_id">
<div class="page">
//Your Code
</div>
</t>
</t>
</template>
No comments:
Post a Comment