Assign specific date to Datetime field in Odoo 10

I have a field "date_order" of type "fields.Datetime" and I would like to assign a specific date to this field.

So how do I go about it:

self.date_order = "October 19th, 1987 00:00h"

      

Odoo 10

+3


source to share


1 answer


Assign in the format "YYYY-MM-DD HH: mm: SS"



self.date_order = '1987-10-19 00:00:00'

      

+4


source







All Articles