Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7666 Widoki

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,

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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/

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 17
5633
3
lut 16
6350
1
gru 23
9051
0
kwi 24
1911
1
kwi 24
2146