← Back to team overview

openerp-dev-web team mailing list archive

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

 

> I don't think this fix is the right one: the default values in search views
> work in general (you can even see that with helpdesk: go into Sales > After-
> Sale Services > Helpdesk and Support, you will see the Helpdesk Requests with
> the right defaults set).
>
Yes default is not creating problem. Problem at context reloading when login with demo user then directly open Helpdesk and Support. This time call execute from action and when evaluate context it stuck.

> So the issue is not with 'execute' so much as with its callers (or it's with
> both alternatively):
> 
> * If execute should take care of this, why does execute not have to do it in
> the general case
> * If execute should not take care of it, why does it not work in the case of
> home actions? Is it a problem in home action itself or in execute_by_id
> (rpc.get_session().context is called in execute_by_id, but the resulting
> context is not set into data, before executing, is that normal or not?)

Yes you are right issue is not `default`, and no need to pass context at execute method. 
I have change the code as per your review. Please check again and if i am wrong tell me.

Thank you.

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



References