Odoo Help


Calendar: how to call view for a specific day

Rui Franco
on 7/22/15, 5:40 AM 875 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.


Vale Trood

--Vale Trood--

| 5 2 7
Tunis, France
--Vale Trood--

Vale Trood
On 7/22/15, 7:22 AM

Take a look on this link.

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

Good Luck & let me know


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/22/15, 5:40 AM
Seen: 875 times
Last updated: 7/22/15, 7:22 AM