跳至內容
選單
此問題已被標幟
2 回覆
7534 瀏覽次數

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/

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 17
5537
3
2月 16
6228
1
12月 23
8944
0
4月 24
1812
1
4月 24
2064