c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01118
[Bug 666403] [NEW] Calendar is empty
Public bug reported:
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]
** Affects: openobject-client-web
Importance: Undecided
Status: New
** Tags: calendar
** Description changed:
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']
+ 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]
** Tags added: calendar
--
Calendar is empty
https://bugs.launchpad.net/bugs/666403
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: New
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]
Follow ups
References