diff --git a/addons/base/static/src/js/list.js b/addons/base/static/src/js/list.js index 62bedf8784d..dab8eef596d 100644 --- a/addons/base/static/src/js/list.js +++ b/addons/base/static/src/js/list.js @@ -427,6 +427,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi if (_.isEmpty(records)) { records = this.groups.get_records(); + if (records.constructor != Array) debugger } var count = 0, sums = {}; @@ -934,6 +935,7 @@ openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Gr }, get_records: function () { if (_(this.children).isEmpty()) { + alert("HERE") return { count: this.datagroup.length, values: this.datagroup.aggregates diff --git a/openerpweb/nonliterals.py b/openerpweb/nonliterals.py index a99e2215a00..1465123eba8 100644 --- a/openerpweb/nonliterals.py +++ b/openerpweb/nonliterals.py @@ -7,6 +7,8 @@ can't be sent there themselves). import binascii import hashlib import simplejson.encoder +import time +import datetime __all__ = ['Domain', 'Context', 'NonLiteralEncoder, non_literal_decoder', 'CompoundDomain', 'CompoundContext']