I'm using two dates to form a "period" in openErp:
_columns = {
'date_from': fields.date('From', required = True),
'date_to': fields.date ('To', required = True),
}
These two fields are inputs for the user, after they choose both dates I create a string called "period"
'period': str(date_from)+ ' // ' + str(date_to),
thing is, that the dates are in format "y-m-d" and i need them to be "d-m-y", even if i select my language in openERP it wont changue that string.
Is there any way that i can change that format ?
Thanks in advance.