lp:~openerp-dev/openerp-web/trunk-local-today-xmo
- Get this branch:
- bzr branch lp:~openerp-dev/openerp-web/trunk-local-today-xmo
Branch merges
- Martin Trigaux (OpenERP): Approve
- Anaƫl Closson (openerp): Pending requested
- OpenERP R&D Web Team: Pending requested
-
Diff: 187 lines (+102/-6)3 files modifiedaddons/web/static/src/js/openerpframework.js (+22/-2)
addons/web/static/src/js/pyeval.js (+45/-4)
addons/web/static/test/evals.js (+35/-0)
Branch information
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 eitherdatetime.
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. - 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>
- 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 - 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