1. Creating a new XML file
This file should be placed under yourModuleName/views and you can name it as you wish.
vetclinic_animal_report.xml
eg. of Minimal viable template
2. Add the report to the XML file responsible for reports
report.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<openerp>
<data><report
id=”action_report_vetclinic”
model=”vetclinic.animal”
string=”VetClinic Details”
report_type=”qweb-pdf”
name=”vetclinic.vetclinic_animal_report”
file=”vetclinic.vetclinic_animal_report”
/></data>
</openerp>
3. Notify Odoo from the new report
__openerp__.py
{
‘name’: ‘Vet Clinic’,
‘version’: ‘1.0’,
‘description’:’Vet Clinic application for Animals’,
‘author’: ‘ananthu’,
‘website’: ‘http://www.codersfort.com’,
‘depends’: [‘base_setup’],
‘data’: [
‘vetclinic_view.xml’,
‘report.xml’,
‘views/vetclinic_animal_report.xml’
],
‘demo’:[],
‘installable’:True,
‘auto_install’: False,
}
4. Wrapping things up