跳至内容
菜单
此问题已终结
4665 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
1
4月 25
1165
0
3月 25
1104
2
1月 25
1445
2
5月 24
1881
0
8月 23
1682