Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have just succeeded in extracting account.invoice report template to an own, external module. If I try to print an outgoing invoice, everything behaves as expected - my modified invoice template is filled and printed. But only, if I use the print button of the button bar directly above the invoice inserting mask. If I use the print option of the print menu further above (this dropdown one), an error occurs: KeyError(u'report.report.account.invoice'
You may think now, why don't you simply always use the print button working with your new template? Yes... But regarding incoming invoices, such a button does not exist - in this case, I need to use the print button out of the dropdown print menu. Therefore, at the moment, I can not print any incoming invoices with my customization.
Can you therefore give me an advice how to connect my new report template to the dropdown print menu, too?
Many thanks in advance ...
That report comes with this:
<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('/','')+'.pdf')" attachment_use="True" usage="default" />
So you have to modify this too, this adds the print button
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
|Asked: 11/18/13, 6:08 PM|
|Seen: 1862 times|
|Last updated: 3/16/15, 8:10 AM|