Odoo Help


How to add reoccuring dates (e.g. birthdays) to calendar view?

Marco Dieckhoff
on 2/11/13, 4:13 AM 3,086 views

When I have a date field for birthdays, and show it on a calendar, only the "real" birthday, the first, is shown.

How do I make the calendar view show it every year?


Bonnet Denis

--Bonnet Denis--
| 5 6 8
St avé, France
--Bonnet Denis--

CEO/ODOO expert at Talyes.in

Bonnet Denis
On 2/22/13, 10:39 AM

You can use a cron task that run every year with some code like this:

for employee in employees :
    duration=1 day
    create meeting(date,duration)

translate this in correct python

I know how I could add meetings to a given calender, but I'm asking for the calendar _view_ of OpenERP. In order to have it shown there, I would have to add a new data record for every year to my live data, as far as I can see. And it would then appear on tree and form views, too?

Sorry, I don't feel this answers my question.

on 2/22/13, 10:53 AM

With a cron like this, every year an action will create a meeting to all your employees birthday. Their meetings will appear on tree and form view too. Do you have a calendar view with your employees model? In this case I thing you can not do that because calendar view show one "event" per data, you can not have "multi-event" per data like you want. Maybe you can create an Birthday model object with a special calendar view for this.

Bonnet Denis
on 2/22/13, 12:15 PM

Ok, I added a new model for this and added dates covering the estimated lifespan * 1.5 :), so it is a workaround for now. I'll see if I can prepare a blueprint or more for reoccurrence on the "real" calendar view.

on 3/4/13, 4:29 AM

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: 2/11/13, 4:13 AM
Seen: 3086 times
Last updated: 3/16/15, 8:10 AM