lp:~openerp-dev/openerp-web/trunk-local-today-xmo

Created by Xavier (Open ERP) and last modified
Get this branch:
bzr branch lp:~openerp-dev/openerp-web/trunk-local-today-xmo
Members of OpenERP R&D Team can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
OpenERP R&D Team
Project:
Odoo Web (MOVED TO GITHUB)
Status:
Merged

Recent revisions

3919. By Xavier (Open ERP)

[ADD] ways to correctly handle local datetimes in e.g. domains

* change datetime.now() to generate user-local naive datetimes
* add datetime.utcnow() behaving as the old now()
* add date.today() generating a user-local date (for the current day)
* add datetime.replace() to replace any specific attribute of the
  datetime object (except tzinfo, for now)
* datetime.toJSON() now returns the equivalent javascript Date object
  (warning: uses the datetime attributes directly, since datetimes are
  naive if they were created with utcnow() the Date result is going to
  be complete nonsense). With the previous commit datetime.now()
  generates a user-local now() which is converted to the correct UTC
  datetime when sent to the server.

This means it becomes possible to generate datetime bounds for the
user's local today with either

    datetime.datetime.now().replace(hour=0, minute=0, second=0)

or

    datetime.datetime.combine(
        datetime.date.today(),
        datetime.time())

and once send over JSON-RPC the server will get the local datetime
in UTC to the server's format.

nb: user-local means "in the timezone of the user's browser" in this
context.

3918. By Xavier (Open ERP)

[ADD] JSONify Date objects to a UTC datetime in OpenERP server format

This way, the client can send genuine local Date objects without
caring too much, the server will get them in an expected format. This
can then be used by leaving Date objects in domains, and have these
date objects end up correctly in the server without creators of
domains having to manually serialize them to UTC from a local datetime
somehow.

3917. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

3916. By Martin Trigaux (OpenERP)

[IMP] search_read: use search_read from the orm instead of rewritting it
skip search_count when getting no result from search_read
remove useless test based on implementation details

3915. By Christophe Simonis (OpenERP)

[MERGE] forward port of branch saas-2 up to revid 3897 <email address hidden>

3914. By Fabien Meghazi (OpenERP)

[REM] Removed useless QWeb t-escf and t-rawf

3913. By jke-openerp

[MERGE] Merge with trunk

Replace dHtmlXScheduler calendar by FullCalendar from Jquery
Manage filter by coworker/favorite Employee
Manage avatar in event / in sidebar filter

3912. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

3911. By Martin Trigaux (OpenERP)

[FIX] kanban: format aggregates values to float to avoid too long numbers in kanban column

3910. By Quentin (OpenERP) <email address hidden>

[IMP] web_kanban_sparkline: don't show the value in the tooltip for the sparklines of type 'tristate'

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:openerp-web
This branch contains Public information 
Everyone can see this information.

Subscribers