odoo/openerp
Olivier Dony c0644a5474 [FIX] read_group: date format: use natural year along with month names, do not mix with ISO week-year
The ISO week-year notation can produce confusing values
when the first week of the year is so short that it
becomes week 0 and is considered the last week of the
previous year, depending on the locale.

For instance, using ISO notation:
  'W53 2015' == dates.format_date(
      date(2015,1,1), format="'W'w YYYY", locale='en_GB')
  'W53 2005' == dates.format_date(
      date(2006,1,1), format="'W'w YYYY", locale='de_DE')

This is surprising but actually valid.

However it definitely yields wrong output when combined with
months formats:
  'January 2014' == dates.format_date(
      date(2015,1,1), format="MMMM YYYY", locale='en_GB')

As a result we must always use `y` to denote the year in
any date format, *except* when it is combined with the
week number `w`, in which case we must use `Y`.

See the documentation at:
   http://babel.pocoo.org/docs/dates/#date-fields
2014-10-13 19:15:37 +02:00
..
addons [IMP] models: do not use compute methods to determine default values anymore 2014-10-13 13:44:07 +02:00
cli [ADD] initial theme guide + scaffolding 2014-09-02 12:43:17 +02:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [FIX] migration: test if package is installed using its state. 2014-10-07 14:57:26 +02:00
osv [FIX] openerp/osv/fields: fix method to_field() to pass some falsy parameters. 2014-10-08 16:39:59 +02:00
report [REM] report: remove openerp/report/pyPdf 2014-09-16 15:42:02 +02:00
service Forward port of branch saas-3 up to fc9fc3e 2014-10-06 15:52:23 +02:00
tests [IMP] doc: add testing reference and improve docstrings 2014-10-09 15:38:36 +02:00
tools [FIX] GeoIP - allow to specify the path to GeoIP in the server config. 2014-10-13 16:47:12 +02:00
workflow [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR) 2014-08-05 12:26:28 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
api.py [FIX] models: do not prefetch fields to recompute, and recompute once only 2014-10-13 12:38:59 +02:00
exceptions.py [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
fields.py [IMP] models: do not use compute methods to determine default values anymore 2014-10-13 13:44:07 +02:00
http.py [FIX] JS tutorial 2014-10-07 10:23:50 +02:00
import_xml.rng [MERGE] ir-ui-view split active and show_customize 2014-08-31 16:56:44 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] read_group: date format: use natural year along with month names, do not mix with ISO week-year 2014-10-13 19:15:37 +02:00
netsvc.py [FIX] Packaging: Wndows: wrong handler used when logging to file 2014-09-19 11:17:13 +02:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] Odoo 8.0 2014-09-18 12:11:18 +02:00
sql_db.py [FIX] removed bad comments from previous commit 2014-09-05 17:12:49 +02:00