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 would like to add two lines (legal notices) at the end of all my invoices. I think I can do that editing the .rml which is used to create the final .pdf for invoices. Where is this .rml file located?
If you know a cleaner way to achieve this goal, I am interested too.
The file is located in the addons directory
The best solution will be to create an addon that override you current report.
You can do it in XML
<report auto="False" id="account.account_invoices" model="account.invoice" name="account.invoice" rml="my_addons/report/invoice.rml" string="Invoices" attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))" attachment_use="1"/>
` By just replacing the rml attribute to your file path.
Else you can try
c2c_webkit_report to have HTML based report, they may be easier to customize as you do not have to know RML.
You will find it at this location addons/account/report/invoice.rml. you can edit it according to your need.
Secondly you can open the invoice report using report designer plugin.
To check the path of the rml used go to Settings/Customization/Low Level Objects/Actions/Reports. search for object account.invoice and edit the entry in form view . It may be possible that you want be able to see changes applied on rml due to the argument reload from attachment. If this is True then the report will be printed from the attachments. So to see the changes you need to either set this argument to False or delete the attachment and then print the report.
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: 2/8/13, 8:50 AM|
|Seen: 3946 times|
|Last updated: 3/16/15, 8:10 AM|