← Back to team overview

openerp-dev-web team mailing list archive

[Bug 666403] [NEW] [trunk] Calendar is empty

 

You have been assigned a bug task for a public bug by DBR (OpenERP) (dbr-openerp):

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: Medium
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed


** Tags: calendar
-- 
[trunk] Calendar is empty
https://bugs.launchpad.net/bugs/666403
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.