Im working with Odoo V8.
Can anybody help with this error?
AttributeError: 'list' object has no attribute 'id'
what i did is the below:
vals.update({
'name': name,
'date_departure': datetime_departure,
'date_arrival': datetime_arrival
})
service = super(ServiceClass, self).create(vals)
and save the service id like this:
services.append((0, 0, service_id.id))
and finally return the services list. like this:
return services
so, when I save, it returns: AttributeError: 'list' object has no attribute 'id'
Can you please provide any solution? Thanks in advanced