← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 784397] Re: Calendar view doesn't show all items (Month/week and day)

 

** Changed in: openobject-client-web
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/784397

Title:
  Calendar view doesn't show all items (Month/week and day)

Status in OpenERP Web Client:
  Fix Committed

Bug description:
  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, search_limit, 0, ctx)
  with
  clr_field = rpc.RPCProxy(self.fields[self.color_field]['relation']).search([], 0, 0, 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/784397/+subscriptions


References