[FIX] Need time & datetime modules for evaluation
bzr revid: fme@openerp.com-20110630095931-nysrcqz8666gafgb
This commit is contained in:
parent
3a17944671
commit
987b8f1e9f
|
@ -427,6 +427,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi
|
||||||
|
|
||||||
if (_.isEmpty(records)) {
|
if (_.isEmpty(records)) {
|
||||||
records = this.groups.get_records();
|
records = this.groups.get_records();
|
||||||
|
if (records.constructor != Array) debugger
|
||||||
}
|
}
|
||||||
|
|
||||||
var count = 0, sums = {};
|
var count = 0, sums = {};
|
||||||
|
@ -934,6 +935,7 @@ openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Gr
|
||||||
},
|
},
|
||||||
get_records: function () {
|
get_records: function () {
|
||||||
if (_(this.children).isEmpty()) {
|
if (_(this.children).isEmpty()) {
|
||||||
|
alert("HERE")
|
||||||
return {
|
return {
|
||||||
count: this.datagroup.length,
|
count: this.datagroup.length,
|
||||||
values: this.datagroup.aggregates
|
values: this.datagroup.aggregates
|
||||||
|
|
|
@ -7,6 +7,8 @@ can't be sent there themselves).
|
||||||
import binascii
|
import binascii
|
||||||
import hashlib
|
import hashlib
|
||||||
import simplejson.encoder
|
import simplejson.encoder
|
||||||
|
import time
|
||||||
|
import datetime
|
||||||
|
|
||||||
__all__ = ['Domain', 'Context', 'NonLiteralEncoder, non_literal_decoder', 'CompoundDomain', 'CompoundContext']
|
__all__ = ['Domain', 'Context', 'NonLiteralEncoder, non_literal_decoder', 'CompoundDomain', 'CompoundContext']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue