İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7651 Görünümler

Hello,

I am trying to create an automated action upon creation of a Partner. The problem is that the create_date field is not accessible , the filed exists in the database but not in the model.

Can anyone helps?

regards,

Avatar
Vazgeç
En İyi Yanıt

Hi,

First of all inherit the 'res.partner' and add the fields

'create_date': fields.datetime('Creation Date' , readonly=True),

Then put this field in view...so that you can see or access the partner created date.

Avatar
Vazgeç
En İyi Yanıt

You have to add the database field to the model as a read-only field.

For an example that adds the create_uid to the sale.order model so users can see who entered sales orders, see:

https://www.openerp.com/apps/6.1/add_user_sales_order/

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
May 17
5628
3
Şub 16
6330
1
Ara 23
9028
0
Nis 24
1893
1
Nis 24
2125