Odoo Help

0

Use a function field in a Odoo report

By
José
on 4/26/16, 7:52 AM 579 views

Hello, I have Odoo 8. I want to create a custom report showing the "credit" field of the partners. This is a function field, so when I try to show this in the report I get the error "the field 'credit' does not exist".

How can I display a function field in a report?

Thanks!

2
Akhil P Sivan
On 4/26/16, 7:59 AM

Add the attribute store=True in the field definition and try

Yes, it works, but is there any problem using store=True without specifying the fields that depends on?

José
on 4/26/16, 8:44 AM

I don't think there is any problem for using like that. You have used that attribute on "credit" field definition in the python file right?

Akhil P Sivan
on 4/27/16, 2:17 AM

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

Question tools

1 follower(s)

Stats

Asked: 4/26/16, 7:52 AM
Seen: 579 times
Last updated: 4/26/16, 7:59 AM