Hear You can also set the custom date formate using function
Add the function in your_report.py file
class member_branch_mov(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(member_branch_mov, self).__init__(cr, uid, name, context)
self.localcontext.update({
'time': time,
'get_formate_header_date':self._get_formate_header_date
})
def _get_formate_header_date(self, objects):
header_date=''
if self.end_date:
date = datetime.strptime(self.end_date,'%Y-%m-%d')
header_date=date.strftime('%d %B %Y')
return header_date.upper()
hear self.end_date comes from the wizard field
Add in your report your_report_view.xml File
<t t-if="get_formate_header_date(docs)"><span t-esc="get_formate_header_date(docs)" /></t>