Odoo Help

Welcome!

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

0

override report

By
smorele
on 3/21/16, 9:01 AM 372 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"

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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