Odoo Help

1

weekday does not work in relativedelta

By
Jose Maria Alzaga
on 8/10/13, 7:15 AM 1,591 views

If you try to make a personalized filter or a personalized view using for example: date '<=' (context_today() + relativedelta(weekday=0)). the result is that the filter is not applied. It should take the data corresponding to the day 0 of the week, that is Monday, but it does't take it. The yearday parameter doesn't work either. OpenERP v7

Have you got a workaround for this?

Tekse Arpad
on 3/11/14, 5:42 PM
0
codefans
On 4/29/15, 3:12 AM

I get the same problem. I find the pyeval.js don't handle the relativedelta's parameter weekday.

you can change the pyveval.js file or use this module

https://github.com/OCA/web/tree/7.0/web_relativedelta

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

Question tools

0 follower(s)

Stats

Asked: 8/10/13, 7:15 AM
Seen: 1591 times
Last updated: 4/29/15, 3:12 AM