openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #06971
[Bug 784397] [NEW] Calendar view doesn't show all items (Month/week and day)
Edwin Dsouza(OpenERP) (eds-openerp) has assigned this bug to you for OpenERP Web Client:
If you create a manufacturing production order for some routes, it
doesn't show in the calendar view.
More specifically, looking at the code, the calendar view only shows
orders for the first 10 groupings (line 253 - 267 of
addons/view_calendar/widgets/_base.py).
We have around 380 routes currently set up with around 20 actively used
(in future we may do a data cleanup).
Our first 10 routes aren't used often, meaning 99% of the time we cannot
see any manufacturing orders in any of the calendar views.
The hard coded filter of 10 needs to be removed or a mechanism needs to
be developed to allow changing the filter.
This bug will effect any user that have more than 10 groupings that he
wants to view in a calendar.
Steps to reproduce:
1. Manually add routes so the total number of routes are more than 10. Example route1 to route15.
2. Add a manufacturing order and allocate it to a route that is not in the first 10 routes in the system, example route15.
3. Get the order ready to be produced.
4. View the manufacturing calender in the planning menu. The order will not be displayed.
As a test I replaced line 264 (note I replaced search_limit with 0. It is hard coded to 10 in the source):
clr_field = rpc.RPCProxy(self.fields[self.color_field]['relation']).search([], 0, 0, 0, ctx)
with
clr_field = rpc.RPCProxy(self.fields[self.color_field]['relation']).search([], 0, search_limit, 0, ctx)
when I did that, all my orders displayed, regardless of the route I
choose.
Having a look at the client GTK code, it doesn't have a hard coded
filter value and it correctly displays all entries.
** Affects: openobject-client-web
Importance: Low
Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
Status: Confirmed
--
Calendar view doesn't show all items (Month/week and day)
https://bugs.launchpad.net/bugs/784397
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.