Skip to Content
मेन्यू
This question has been flagged
1 Reply
4105 Views

i've created a module named "appointement" that have as fields -start-datetime- finish-datetime ... 

but when i try to overide the function name_get i got this error "AttributeError: type object 'appointment' has no attribute 'id'"

@api.multi
def name_get(self):
result=[]
for rd in self:
name=rd.sujet+' faite par :'+rd.agent_id.name
result.append((appointment.id,name))
return result
Avatar
Discard
Best Answer

replace appointment.id with rd.id

Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 15
5254
name_get Solved
2
जुल॰ 24
10071
0
मार्च 15
4693
1
फ़र॰ 25
3655
1
जन॰ 24
1466