Skip to Content
Menu
This question has been flagged
1 Reply
4005 Views

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.

Avatar
Discard
Best Answer

Take a look on this link.

It may help you. Change the form to calendar and try .

Good Luck & let me know

https://www.odoo.com/fr_FR/forum/help-1/question/how-to-open-a-new-form-when-i-click-in-a-button-66751

Avatar
Discard
Related Posts Replies Views Activity
3
Aug 24
1200
0
Dec 23
549
0
Sep 23
1026
2
Jun 23
2471
1
Apr 23
11713