← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666403] Re: [trunk] Calendar is empty

 

** Changed in: openobject-client-web
     Assignee: (unassigned) => Xavier (Open ERP) (xmo)

** Changed in: openobject-client-web
   Importance: Undecided => Medium

-- 
[trunk] 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]





References