跳至内容
菜单
此问题已终结
4 回复
200 查看

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
1360
0
1月 25
3449
1
8月 23
14776
1
8月 23
13429
1
7月 23
10408