I want to be able to open a window with a calendar view of a specific day. However, when I pass the search parametre that should enable me to do this, I always get a "undefined function" javascript message.
What I am doping right now is:
context['search_default_appointment_date'] = this.date
dummy, view_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'whatever_appointment', 'view_whatever_appointment_calendar)
return {
'name' : False,
'view_type' : 'form',
'view_mode' : 'calendar',
'view_id' : view_id,
'res_model' : 'whatever.appointment',
'type' : 'ir.actions.act_window',
'nodestroy' : True,
'target' : 'new',
'context' : context,
}
Every other search parametre seems to be working.