Odoo Help

0

override report

By
Anybox
on 3/21/16, 9:01 AM 794 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

0
Mateo Tibaquira
On 11/1/16, 6:28 PM

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"

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/21/16, 9:01 AM
Seen: 794 times
Last updated: 11/1/16, 6:28 PM