Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
4 Vastaukset
240 Näkymät

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

Avatar
Hylkää
Tekijä Paras vastaus

Here is the answer:

Just create:

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

with its xml.

And it functions incredibly

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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

Tekijä

I want a field in which i will display the wrire_date

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 25
1420
0
tammik. 25
3502
1
elok. 23
14869
1
elok. 23
13517
1
heinäk. 23
10498