Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Print reports in Odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 555
    Comment on it

    If any report have a combination of two elements,like below->
    1-in reporting all session contain an ir.actions.report.xml, for which a <report> shortcut element is provided, for example code is below-->

    <report id="account_invoices" model="account.invoice" string="Invoices" report_type="qweb-pdf" name="account.report_invoice" file="account.report_invoice" attachment_use="True" attachment="(object.state in ('open','paid')) and
            ('INV'+(object.number or '').replace('/','')+'.pdf')"></report>
    

    2- And other contain a standard QWeb view for the actual report.
    for example code is below->

    <t t-call="report.html_container">
        <t t-foreach="docs" t-as="o">
            <t t-call="report.external_layout">
                <div class="page">
                    <h>Report title</h>
                </div>
            </t>
        </t>
    </t>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: