Skip to Content
Menu
This question has been flagged
1 Reply
7647 Views

Hello,

i have a field for academic_year. How can i get current academic year by default in it?

plz help.

Avatar
Discard
Best Answer
academic_year = fields.Integer(string="Academic Year", default=datetime.now().year)


Avatar
Discard