c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #10257
[Bug 666403] Re: [trunk] Calendar is empty
*** This bug is a duplicate of bug 603642 ***
https://bugs.launchpad.net/bugs/603642
Hey cool to see at some point you fixed a bug I reported in July
https://bugs.launchpad.net/openobject-client-web/+bug/603642 ...
** This bug has been marked a duplicate of bug 603642
[trunk] calendar/gantt search limit hardcoded to 3 is too restrictive!
* You can subscribe to bug 603642 by following this link: https://bugs.launchpad.net/openobject-client-web/+bug/603642/+subscribe
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/666403
Title:
[trunk] Calendar is empty
Status in OpenObject Web Client:
Fix Released
Bug description:
There is a condition in the calendar view that filters the color code field with the first 3 records of the relation. This condition should be removed because the calendar appears to be empty while it is not. You should limit the number of calendar events instead.
[code]
web/addons/view_calendar/widgets/_base.py
Line 262:
if self.color_field and self.fields[self.color_field].get('relation'):
if self.options and self.options.get('_terp_color_filters'):
clr_field = self.options['_terp_color_filters']
- else:
- search_limit = 3
- clr_field = rpc.RPCProxy(self.fields[self.color_field]['relation']).search([], 0, search_limit, 0, ctx)
- domain.append((self.color_field, 'in', clr_field))
+ domain.append((self.color_field, 'in', clr_field))
Line 272:
- ids = proxy.search(domain, 0, 0, order_by, ctx)
+ ids = proxy.search(domain, 0, 100, order_by, ctx)
[/code]
References