تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
204 أدوات العرض

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
مارس 25
1363
0
يناير 25
3454
1
أغسطس 23
14779
change password تم الحل
1
أغسطس 23
13433
1
يوليو 23
10411