[ADD] todo notes

bzr revid: xmo@openerp.com-20121123101658-xoynynruwnuzyrv3
This commit is contained in:
Xavier Morel
2012-11-23 11:16:58 +01:00
parent 242a5da5a9
commit 7c09e23de7
+3
View File
@@ -602,6 +602,7 @@ openerp.web.pyeval = function (instance) {
var eval_contexts = function (contexts, evaluation_context) {
evaluation_context = evaluation_context || {};
return _(contexts).reduce(function (result_context, ctx) {
// TODO: wrap string contexts in nonlit?
// __eval_context evaluations can lead to some of `contexts`'s
// values being null, skip them as well as empty contexts
if (_.isEmpty(ctx)) { return result_context; }
@@ -626,6 +627,7 @@ openerp.web.pyeval = function (instance) {
var eval_domains = function (domains, evaluation_context) {
var result_domain = [];
_(domains).each(function (domain) {
// TODO: wrap string domains in nonlit?
switch(domain.__ref) {
case 'domain':
evaluation_context.context = py.dict.fromJSON(evaluation_context);
@@ -648,6 +650,7 @@ openerp.web.pyeval = function (instance) {
var eval_groupbys = function (contexts, evaluation_context) {
var result_group = [];
_(contexts).each(function (ctx) {
// TODO: wrap string contexts in nonlit?
var group;
var evaluated = ctx;
switch(ctx.__ref) {