December 2018
Beginner to intermediate
404 pages
10h 14m
English
Since Odoo 12, date and time fields can be written using values in Python native data types, both using direct assignment and using write().
We can still write date and time using text-represented values:
>> demo = self.search([('login', '=', 'demo')])>>> demo.login_dateFalse>>> demo.login_date = '2018-01-01 09:00:00'>>> demo.login_datedatetime.datetime(2018, 1, 1, 9, 0)
Read now
Unlock full access