تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3155 أدوات العرض

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!

الصورة الرمزية
إهمال
أفضل إجابة

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?

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 16
6709
0
يونيو 20
2765
7
مايو 20
6243
5
يونيو 17
8977
5
نوفمبر 16
6844