Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
7685 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 17
5635
3
feb 16
6359
1
dic 23
9067
0
apr 24
1929
1
apr 24
2171