Merge lp:~openerp-dev/openobject-server/6.0-opw-17601-rgo into lp:openobject-server/6.0
Proposed by
Ravi Gohil (OpenERP)
Status: | Superseded |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-17601-rgo |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
11 lines (+1/-1) 1 file modified
bin/addons/base/ir/ir_model.py (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-17601-rgo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Needs Fixing | ||
Raphael Collet (OpenERP) | Pending | ||
Anup(SerpentCS) | Pending | ||
Review via email: mp+76341@code.launchpad.net |
This proposal has been superseded by a proposal from 2011-09-29.
Description of the change
Hello,
When calling ir.model.access 'check' method, with raise_exception
when there is no access right (no specific and no generic one) defined in the
system, the server return None (which is not valid for XMLRPC).
This fixes the issue.
Thanks.
To post a comment you must log in.
Hello Ravi,
I agree with you. I would definitely admit that any method which is being called by xmlrpc should not return None as 'None' is not being marshaled and raises an error.
I agree with your fix but I think won't be feasible to do it on a single method or it would require lot's of changes with other methods which are returning None.
So IMHO there should be some generic way to get rid of the issue. Whenever xmlrpc calls a method.
We still need to discuss with experts before merging it.
@Raphael,Olivier Can you please share your views?
Thanks.