Skip to Content
Menu
This question has been flagged
1 Reply
4993 Views

I try to change a report definition in a custom module but I do not succeed.

This is the report:

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

and I want to remove the attachment_use property then I set

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

but instead of replacing the report, It creates a new one. Is there a way to change this value ?

thanks

Avatar
Discard
Best Answer

For the record, you need to specify the complete External ID of the report that you want to override, and there override the values you need. I'm frustrated trying to change the template and file to use :(

<report id="account.account_invoices" ... attachment_use="False"
Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
155
0
Aug 24
165
0
Jan 24
730
1
Nov 23
417
0
Jun 23
971