How to add custom field in Journal Audit report in Odoo 11

161 Views Asked by At

Odoo version: 11

I added custom field to the model "account.payment" : x_mycompany_transcation_id

then I added it to the journal audit report: enter image description here

But it shows me the following error when I try to print the report: enter image description here

1

There are 1 best solutions below

2
CZoellner On

It's only a experienced wild guess, but foreach on the table row says aml and that usually means that the records in the for loop are of model account.move.line which you haven't extended. But instead you have extended model account.payment. So you either have to extend the right model or you have to find another way to show the data in the report.