[FIX] Need time & datetime modules for evaluation

bzr revid: fme@openerp.com-20110630095931-nysrcqz8666gafgb
This commit is contained in:
Fabien Meghazi 2011-06-30 11:59:31 +02:00
parent 3a17944671
commit 987b8f1e9f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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']