[trunk] Calendar is empty

Bug #666403 reported by Claude Petit
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
High
OpenERP R&D Web Team

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]

Tags: calendar
description: updated
tags: added: calendar
summary: - Calendar is empty
+ [trunk] Calendar is empty
Navrang Oza (noz-tiny)
Changed in openobject-client-web:
assignee: nobody → Xavier (Open ERP) (xmo)
importance: Undecided → Medium
Changed in openobject-client-web:
status: New → Confirmed
assignee: Xavier (Open ERP) (xmo) → OpenERP SA's Web Client R&D (openerp-dev-web)
Changed in openobject-client-web:
importance: Medium → High
Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Improved in release #3752

Changed in openobject-client-web:
status: Confirmed → Fix Released
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hey cool to see at some point you fixed a bug I reported in July https://bugs.launchpad.net/openobject-client-web/+bug/603642 ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.