← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 755482] Re: Wrong display of group_by for datetime field

 

I think I understand the cause: my 'appointment_date' field is of type
datetime, thus they all have different values. Thus OpenERP is working
correctly in displaying different values in different bins, however it's
confusing because it truncates to the format "%B %Y". So maybe this
should be turned into a question with the following:

+ can I write an expression in group_by or do I have to create a function field?
+ can I display the date in full format (or change the format)?

-- 
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/755482

Title:
  Wrong display of group_by for datetime field

Status in OpenERP Server:
  New

Bug description:
  In my openerp-server-6.0.2 official release (tar.gz file), I deploy
  Medical module that contains a <search> type with the following

  <filter string="Date" icon="terp-go-month" domain="[]"
  context="{'group_by':'appointment_date'}"/>

  However, it doesn't correctly display result when activated

  1. It shows groups by months, with 1 line / day, so it will shows as
  having 31 rows with the same values

  2. When zoom-in, each line (above) contains other days of the month.

  Expected result: records are grouped by days, and no duplication when
  zoom-in.



References