Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4647 Widoki

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
1110
0
mar 25
1076
2
sty 25
1412
2
maj 24
1865
0
sie 23
1672