python - How to write <t t-if=" " > condition for an html <span> to check report page no -
i have created custom invoice report in odoo10. when table contents (invoice items/products) increases, table goes second page disturbed formatting.
i want make second page show header, table headings rest items on second page in default invoice reports in odoo.
how can achieve this! have created whole invoice report in 1 table ie multiple rowspans , colspans.
the second option is, can write condition check if report includes second page, total amount , rest part should displayed on second page. how can check, if invoice including second page?
something :
<t t-if="span='class='page''>1">
below default page div of odoo10 .
<div class="col-xs-2 col-xs-offset-3 text-right"> <ul class="list-inline"> <li><span class="page"/></li> <li>/</li> <li><span class="topage"/></li> </ul> </div>
below custom report screenshot: custom invoice report
below default odoo invoice report layout screenshot:
please advise how can achieve this. alternate advise welcome.
ps: tried page breaks html page still doesn't have effect on pdf print.
Comments
Post a Comment