Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
[odoo9] : Report content and header footer issue with wizard
Hello All,
Again asked because not able to edit the question, added example
I've created report which is printed from wizard,
It works well until i add,
report.external_layout in report template,
After adding this external layout header footer appears but report content is disappeared
What could be the issue?
If i remove report.external_layout template than report works well but the report will not having header & footer then.
Edit, Eg.
<!-- Report Template--><template id="test_template">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="report.external_layout">
<div class="page">
<div class="row">
<p>Report printed from wizard</p>
</div>
</div>
</t>
</t>
</t>
</template>
These are the problems
1. If i remove external_layout template than it print the report content but there is no header,
2. if I add external_layout it just print header and footer for all records not content.
What can be issue?
Do i need add something else with my parser class?
Please help
Thank you.
Prince.
Hi prince,
Try this internal layout instead of external layout, because for wizard report it only supports internal layout.
Here is the syntax.
report.internal_layout
Just replace external with internal, it will work perfectly but it will give you the different header footer than the normal, which is normally used for summary report.
For the reference you can see all accounting reports those are generated through wizard, those all are following the internal layout only. external layout is not used anywhere so probably external layout cannot be used for the report those are generated from wizard.
May be someone has idea how to apply external layout on it, it would help me as well.
Hope this will help.
Rgds,
Anil Kesariya.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 7/13/16, 3:45 AM |
Seen: 985 times |
Last updated: 9/13/17, 6:43 AM |