M.E.
M.E.

Reputation: 5527

Assign a specific date to a 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 that field.

So how do I do to do:

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

Odoo 10

Upvotes: 3

Views: 665

Answers (1)

Shameem
Shameem

Reputation: 2814

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

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

Upvotes: 4

Related Questions