c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11950
[Bug 701564] [NEW] XML-RPC: fields_view_get called with None as view_id => "cannot marshal None unless allow_none is enabled"
Public bug reported:
How to reproduce, on web client revno 4310
--------------------------------------------------------
1) Configure your web client to connect to the server using XML-RPC protocol, by modifying doc/openerp-web.cfg:
openerp.server.port = '8069'
openerp.server.protocol = 'http'
2) Connect to any database, and open any menu bound to an action that
does not hardcode the view_id to use. For example, as admin go to
Administration > Companies > Companies
3) You get an error: "cannot marshal None unless allow_none is enabled"
Analysis
----------
Looking at the traceback, the web client calls fields_view_get with None as view_id:
(u'res.company', 'fields_view_get', None, 'search', ..., True, False)
A trivial patch is attached, but a more global check of similar cases
might be useful (or perhaps a sanity check at rpc stack layer?)
** Affects: openobject-client-web
Importance: Medium
Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
Status: Confirmed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701564
Title:
XML-RPC: fields_view_get called with None as view_id => "cannot
marshal None unless allow_none is enabled"
Status in OpenObject Web Client:
Confirmed
Bug description:
How to reproduce, on web client revno 4310
--------------------------------------------------------
1) Configure your web client to connect to the server using XML-RPC protocol, by modifying doc/openerp-web.cfg:
openerp.server.port = '8069'
openerp.server.protocol = 'http'
2) Connect to any database, and open any menu bound to an action that
does not hardcode the view_id to use. For example, as admin go to
Administration > Companies > Companies
3) You get an error: "cannot marshal None unless allow_none is
enabled"
Analysis
----------
Looking at the traceback, the web client calls fields_view_get with None as view_id:
(u'res.company', 'fields_view_get', None, 'search', ..., True, False)
A trivial patch is attached, but a more global check of similar cases
might be useful (or perhaps a sanity check at rpc stack layer?)
Follow ups
References