Odoo Help


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.


How to show Week by default in a Calendar View

George Rodopoulos
on 2/3/15, 5:41 PM 2,359 views

When you load the calendar (meetings) in odoo, the month view shows up by default.

How can I show the week or day view by default?

Is there any related configuration option or a custom module is needed?

On 7/1/15, 4:38 AM

(I know it's been too late but this could help someone)

You can use mode attribute of the calendar tag.


<calendar string="Invoices" color="journal_id" date_start="date_invoice" mode="week">

Best regards,

Thank you, another reason why odoo documentation is lacking...

Wilbert Tan
on 9/15/16, 12:14 AM
Vishal Gediya
On 12/31/15, 12:10 AM

Show a by default week in calendar view use mode="week" attribute in calendar tag.

<calendar string="Calendar" date_start="date_start" date_stop="date_stop" color="user_id" avatar_model="res.users" display="[name]" mode="week">
    <field name="user_id" />
Abraham Anes
On 3/30/15, 7:08 AM

Hello George!

I do it that editting the file web_calendar.js in addons/web_calendar/statics/src/js/web_calendar.js in line 257 I modifyed this

defaultView: (this.mode == "month")?"month":
(this.mode == "week"?"agendaWeek":
(this.mode == "day"?"agendaDay":"month")),
defaultView: (this.mode == "month")?"month":
(this.mode == "week"?"agendaWeek":
(this.mode == "day"?"agendaDay":"agendaWeek")),

Setting the default value to "agendaWeek" and its working properly!

Julien Roux
On 2/6/15, 2:45 PM


in my mind this configuration will require development.


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

2 follower(s)


Asked: 2/3/15, 5:41 PM
Seen: 2359 times
Last updated: 12/31/15, 12:10 AM