Openerp 更改odoo中的报告定义

Openerp 更改odoo中的报告定义,openerp,Openerp,我试图在自定义模块中更改报表定义,但没有成功 以下是报告: <report id="account_invoices" model="account.invoice" string="Invoices" report_type="qweb-pdf" name="account.report_invoice" file="account.report_invoice" attac

我试图在自定义模块中更改报表定义,但没有成功

以下是报告:

 <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')"
    />

我想删除附件_use属性,然后设置

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

但它没有替换报告,而是创建了一个新的报告。 有没有办法更改此值


谢谢

是的,只需将帐户前缀添加到id。如下所示。这是模块的名称,报表实际存在于该模块中。这将不会创建新报告并对现有报告进行更改

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


它似乎无效。如果更改字符串,则无任何更改:(在进行上述更改后,您是否升级了模块?