Error:
Uncaught TypeError: value.split is not a function
http://localhost:8099/web/content/417-9eb0f92/web.assets_backend.js:1036
Traceback:
TypeError: value.split is not a function
at Class._getDisplayName (http://localhost:8099/web/content/417-9eb0f92/web.assets_backend.js:1036:101)
at http://localhost:8099/web/content/417-9eb0f92/web.assets_backend.js:1041:219
at Function._.map._.collect (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:13:270)
at Object.<anonymous> (http://localhost:8099/web/content/417-9eb0f92/web.assets_backend.js:1041:186)
at Object.<anonymous> (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:802:681)
at fire (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:801:198)
at Object.deferred.<computed> [as resolve] (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:803:56)
at Object.<anonymous> (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:3869:358)
at Object.<anonymous> (http://localhost:8099/web/content/383-91f685c/web.assets_common.js:802:681)
CODE >>>>
@api.multi
def name_get(self):
res = []
for select in self :
if select.scs_contribut == 'commi' :
name = select.name_commi
elif select.scs_contribut == 'exco':
name = 'Exco From ' + str(select.period_start) + 'to ' + str(select.period_end)
else:
name = select.name_scs
res.append((select.id, name))
return res