Odoo Help

0
6 Answers
4
dsfairy84
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.

e.g. 

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

Best regards,

1 Comment
Wilbert Tan
9/15/16, 12:14 AM

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

0
Avatar

Parikshit Vaghasiya

--Parikshit Vaghasiya--
967
| 6 3 8
AHMEDABAD, India
--Parikshit Vaghasiya--

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

Parikshit Vaghasiya
2/23/17, 1:40 AM

Hello, This will help you it is work for me.

CalendarView.include({
    get_fc_init_options: function () {
        var result = this._super();
        result.defaultView = 'month';
        return result
    },
});
0
Vishal Gediya
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" />
</calendar>
0
Abraham Anes
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!

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

Hello,

in my mind this configuration will require development.

Regards.

Ask a Question
Tags
Keep Informed
2 follower(s)
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.

Register
Odoo Training Center

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

Test it now