summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-04-22 13:57:49 +0200
committerGéry Debongnie <ged@odoo.com>2017-04-24 10:12:47 +0200
commit1561165fe25c33ea773d76710b2c94e7d71968d4 (patch)
treea3536fbcd16547e7eee5b6f76e3b56b40f41e26f /addons/web/static/src/js/widgets/debug_manager.js
parent329c2ded24af600feaf6d013e6ad71ba41126665 (diff)
[FIX] web: properly format dates in context
When evaluating a context, we need to use the server format for dates, because the context will ultimately be sent do the server. Also, moment objects are not known by pyeval, so they simply cause a crash (for example, see bank statements form view, edit it, click on 'add an item') With this commit, we make sure that the evaluation context is correct, with respect to dates (we use the toJSON method, because that is the way we get the server compatible date)
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions