I've created two new models: event.meeting and event.meeting.registration (this one has a column named meeting_id, which relates it to the first one).
In event.meeting, I've created a method named my_method (non-static). Now, I want to call it from a function of event.meeting.registration. And to do that, I did this:
for record in self.browse(cr, uid, ids, context=context):
eve_mee_obj = self.pool.get('event.meeting')
elements = eve_mee_obj.browse(cr, uid, [record.meeting_id], context=context)
for element in elements:
a = element.my_method(cr, uid, [record.meeting_id], context)
return False
But I'm getting this error:
TypeError: my_method() takes at most 5 arguments (9 given)
Can anyone help me, please?
can you please give my_method definition also?