Odoo Help

Welcome!

This community 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.

0

Calendar: how to call view for a specific day

By
Odooveloper (by Rui Franco)
on 7/22/15, 5:40 AM 393 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.

0

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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