Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to know if this is normal(or a bug) the group by filter doesn't work on the "Calendar"(messaging/organizer/calendar)(so linked to the crm.meeting object) Tree view ?
I made the test on a V7 OCB AND a V8 from the runbot. http:// trunk-27943-all.runbot.openerp.com/web?db=trunk-27943-all#page=0&limit=80&view_type=list&model=calendar.event&menu_id=335&action=375
You can see the problem on these 2 images : https:// imageshack.com/i/mk2ginj https:// imageshack.com/i/jmdp3cj
Thanks in advance,
This issue seems pretty old. However, there is still no general solution for this on the forum and, this may be the best place to put the answer. So, we faced the same problem and we found the following:
1. The problem is in the function read_group of the file 'calendar.py' in class 'calendar.event'. The developers intentionally added the code to make all groups empty, explaining it with the comment “remove the count, since the value is not consistent with the result of the search when expand the group”:
for groupname in groupby:
if result.get(groupname + "_count"):
del result[groupname + "_count"]
2. We have tried to remove the overwriting of the function and it works more or less OK. If to remove above stated 3 lines it would be also fine. The general conclusion is that if you really need grouping in calendar, you have to modify calendar.py file. There is certain risk, that there would be some other bugs, however we haven't revealed them after a week of exploiting.
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
|Asked: 1/17/14, 11:34 AM|
|Seen: 1366 times|
|Last updated: 3/16/15, 8:10 AM|