← Back to team overview

openerp-dev-web team mailing list archive

Re: lp:~openerp-dev/openobject-client-web/trunk-bug-715485-sma into lp:openobject-client-web

 

> Wouldn't it make more sense (and be much cleaner) to perform this injection on
> the Python side of `eval_domain_context_request`, through the normal
> evaluation process, and on the JS side "just" send a `self` context value set
> correctly?

1> If i am evaluating `self` at `eval_domain_context_request` then at the starting 
   params, data = TinyDict.split(kw)
   it gives traceback from make_dict due to `self`

  File "/home/sananaz/workspace/local_workspace/client-web/trunk-bug-715485-sma/addons/openerp/utils/utils.py", line 75, in make_dict_internal
    res[k] = make_dict_internal(v, is_params and isinstance(v, TinyDict), previous_dict_ids)
  File "/home/sananaz/workspace/local_workspace/client-web/trunk-bug-715485-sma/addons/openerp/utils/utils.py", line 41, in make_dict_internal
    raise ValueError("Recursive dictionary detected, _make_dict does not handle recursive dictionaries.")
ValueError: Recursive dictionary detected, _make_dict does not handle recursive dictionaries.

2> And is it better way to evaluate on `kw` because its generic function? and this happen only with m2o, so need to pass m2o current value evaluated. 



-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-715485-sma/+merge/50556
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client-web/trunk-bug-715485-sma.



References