Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7803 มุมมอง

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
5713
3
ก.พ. 16
6421
1
ธ.ค. 23
9172
0
เม.ย. 24
2062
Data for relations table แก้ไขแล้ว
1
เม.ย. 24
2309