Hello. I want to write a function to concatenate the fields 'firstname' and 'surname' in one 'name' field, I tried but I can not get results. Here is my code:
def _firstname_surname(self, cr, uid, ids, field, arg, context=None):
for etudiant in self.browse(cr, uid, ids, context=None)
'name' = 'firstname' + ' ' + 'surname'
return name
you need to reformat your code to make it more readable in the question.