December 2018
Beginner to intermediate
404 pages
10h 14m
English
Prior to Odoo 12, we needed to convert text representations for date and datetimes before we could do any arithmetic with them. Some tools are provided to help with this conversion from text into native data types and then back into text.
These are useful when working with previous Odoo versions and are still relevant for Odoo 12; for this case, we need to work with a date that arrives to us formatted as text.
To facilitate conversion between formats, both fields.Date and fields.Datetime objects provide these functions:
Read now
Unlock full access