Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3182 Näkymät

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!

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 16
6728
0
kesäk. 20
2790
7
toukok. 20
6276
5
kesäk. 17
9006
5
marrask. 16
6868