Odoo Help

Welcome!

This community 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.

2

How to customize Profit And Loss report in version 6?

By
Keyur
on 5/27/13, 2:54 AM 1,017 views

Hello guys,
I want to customize Profit And Loss(v6) report from Accounting/Reporting/Legal Reports/Accounting Reports/Profit And Loss.
Generally we do customize report by overwriting <report> tag , we apply our customized .rml file to this report tag.
Suppose I want to change in account_invoice report. I will do the following

This is original report tag

<report
    auto="False"
    id="account_invoices"
    model="account.invoice"
    name="account.invoice"
    rml="account/report/account_print_invoice.rml"
    string="Invoices"
    attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))"
    attachment_use="1"
    multi="True"/>

I will change it to

    <report
        auto="False"
        id="account.account_invoices"
        model="account.invoice"
        name="new_account_invoice"
        rml="new_rml_file_path"
        string="Invoices"
        attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))"
        attachment_use="1"
        multi="True"/>

So here I changed name of report & changed rml file path, I kept id as it is. That's enough to do change in existing report.

But I can't find <report> for Profit And Loss report as I mentioned above.

Is there anyway to change Profit And Loss report as I changed account_invoice report?

Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 5/27/13, 2:54 AM
Seen: 1017 times
Last updated: 3/16/15, 8:10 AM