Reputation: 5527
I have a field "date_order" of type "fields.Datetime" and I would like to assign a specific date to that field.
So how do I do to do:
self.date_order = "October 19th, 1987 00:00h"
Odoo 10
Upvotes: 3
Views: 665
Reputation: 2814
Assign in "YYYY-MM-DD HH:mm:SS" format
self.date_order = '1987-10-19 00:00:00'
Upvotes: 4