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

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

頭像
捨棄
作者 最佳答案

Here is the answer:

Just create:

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

with its xml.

And it functions incredibly

頭像
捨棄
最佳答案

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..

頭像
捨棄
作者

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

作者

I want a field in which i will display the wrire_date

相關帖文 回覆 瀏覽次數 活動
0
3月 25
1377
0
1月 25
3461
1
8月 23
14785
1
8月 23
13435
1
7月 23
10419