Hello Samuel ,
- You want to print fields of model into report so you can achieve this like below,
So first of all you have to create a .py file into a report folder and import this file into _init_.py file of report folder and then import report folder into your main _init_.py file like,
from . import report
- Create .py file into report folder like below,
.py file
from odoo import models, fields, api
from datetime import datetime
class report_invoice(models.AbstractModel):
_name = 'report.custom_module_name.report_invoice_template
@api.model
def _get_report_values(self, docids, data=None):
docs = self.env['account.move'].browse(docids)
return {
'doc_ids': docs.ids,
'doc_model': 'account.move',
'docs': docs,
}
- Here report_invoice_template is report template id that you create into report template view file
- Now first create report menu file like below and give name it report_menu.xml,
And give a path to this file into your manifest file.

- Now create report template view file like below and give name it invoice_report_template.xml,
And give a path to this file into your manifest file.

- So here this way , You can access fields of the model into a pdf report .
I hope this is helpful to you.
Thanks & Regards,
Email: odoo@devintellecs.com
Skype: devintelle