Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
7706 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Mai 17
5645
3
Feb. 16
6362
1
Dez. 23
9078
0
Apr. 24
1938
1
Apr. 24
2181