Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
7671 Переглядів

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,

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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/

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 17
5633
3
лют. 16
6351
1
груд. 23
9053
0
квіт. 24
1916
1
квіт. 24
2149