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,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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:
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
2
5月 17
|
6239 | |||
|
3
2月 16
|
7011 | |||
|
1
12月 23
|
10080 | |||
|
0
4月 24
|
2996 | |||
|
1
4月 24
|
3171 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.