i want to declare a function
_columns = {
'preno_emp_ar': fields.Char(
'الاسم'),
'nom_emp_ar': fields.Char(
'النسب'),
'complete_name_ar': fields.function(
_get_full_name_ar, string='الاسم الكامل', type='char', store={
'hr.employee': (_update_fill_name_ar, [
'complete_name_ar', 'preno_emp_ar', 'nom_emp_ar'],
50),
}, method=True, help='Full arabic name of employee'),
}
and i get this error module 'odoo.fields' has no attribute 'function'
is there any methode to declare the function ?