summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/special_fields.js
AgeCommit message (Collapse)Author
2018-01-31[FIX] web: auto-refresh of timeNicolas Martinelli
When a TZ mismatch is detected, the datetime value is displayed in the widget. However, on MacOS, this forces the dropdown list to close at each refresh of the value, which occurs every second. The refresh interval is set to 1 minute in case of MacOS. opw-804035
2017-09-18[FIX] *: fix a bunch of incorrectly documented docstringXavier Morel
Fix a bunch of ill-documented/incomplete/incorrect method docs Without this, the automatic doc generation does not work.
2017-08-17[FIX] web: don't apply timezone offset for date fieldsAdrien Dieudonne
Before this rev., all date fields values were off by one day as soon as the user timezone was negative. With the new views, all dates manipulated by the JS are moment instances in UTC, and when being displayed, they are correctly formatted in the user locale by applying the timezone offset. However, this should obviously not be done for date fields as when no time is specified when creating a moment instance, it defaults to 00:00:00, so applying a negative offset always leads to the day before. Remark: It happens that datetime fields are displayed as a date (e.g. purchase order line form view). In that case, the offset is applied on the displayed date.
2017-05-04[FIX] web: unable to open User FormView from SettingsChristophe Matthieu
Uncaught TypeError: Cannot read property 'split' of undefined. Crash when the value of widget 'timezone_mismatch' is false in form view.
2017-04-28[FIX] web: FieldTimezoneMismatch does not workChristophe Matthieu
The FieldTimezoneMismatch was redone, but an error was done after the last code review. With this commit, we fix the mistake (a function is properly called) and improve the test to make sure we catch such a regression later.
2017-04-19[IMP] web: add timezone_mismatch field widgetChristophe Matthieu
* display a warning when the timezone offset is not the same of the browser timezone offset * if different, display the time in the selected timezone