Merge lp:~openerp-dev/openerp-web/trunk-local-today-xmo into lp:openerp-web
Status: | Merged |
---|---|
Merged at revision: | 3919 |
Proposed branch: | lp:~openerp-dev/openerp-web/trunk-local-today-xmo |
Merge into: | lp:openerp-web |
Diff against target: |
187 lines (+102/-6) 3 files modified
addons/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) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/trunk-local-today-xmo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Trigaux (OpenERP) | Approve | ||
Anaƫl Closson (openerp) | Pending | ||
OpenERP R&D Web Team | Pending | ||
Review via email: mp+202692@code.launchpad.net |
Description of the change
* Alter datetime.now(), generate a local datetime (add utcnow() which generates a UTC datetime)
* Implement datetime.replace() to manipulate local datetimes
* Implement date.today(), generates a local date
* Implement datetime.toJSON(), returns a javascript Date (assumes datetime attributes are local)
* Add conversion hook in JSON and JSONP handlers, automatically converts a Date object to a UTC datetime formatted according to server formats
Should allow the generation of correctly working (from the end-user's POV) [Today] filters, amongst other things.
(although that may not be absolutely trivial as timedelta and relativedelta currently work only with date objects)
Thanks for the patch, merged in trunk
revno: 3919 [merge]
revision-id: <email address hidden>