Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
232 Lượt xem

Hi guys!!

Please who know how to get the date of a recordset please.

I have a field in which i want to put the date of my recordset.

Help please.

thanks in advance

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Here is the answer:

Just create:

'create_date' : fields.datetime('Date Created', readonly=True), 

with its xml.

And it functions incredibly

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

no need for that... 
odoo will keep create_date and write_date accurate by default... if you still need extra date logging...
simply inherit create method and fill desired date/time data in values to be written to new record..

Ảnh đại diện
Huỷ bỏ
Tác giả

Can you help me please to simply inherit create method and fill desired date/time data in values to be written to new record.. I didnt know how please

Tác giả

I want a field in which i will display the wrire_date

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1415
0
thg 1 25
3493
1
thg 8 23
14854
change password Đã xử lý
1
thg 8 23
13505
1
thg 7 23
10484