Hello Abdelwahed,
If you want to get date on when press save button
you should try to make functional field or used to create method
Updated answer
follow bellow step you will get the date when press save button
step 1: Import the library
import time
step 2: define the field
date = fields.Char(compute='_compute_date')
step 3: define the method
@api.one
def _compute_date(self):
self.date = time.strftime('%d/%m/%Y')
Let me know if this doesn't work.
If you like my answer then give me vote
Updated answer
You just create like
create_date = fields.Datetime('Date')
Also in XML file you should define like
<field name="create_date"/>
Thanks & Regards
Ankit H Gandhi
Hello, You want to display create date in form view or tree view?