Display and ajax errors on share module in 6.1

Bug #987101 reported by Mariano Ruiz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

The errors occurs in the share module embedded into a page, but the causes is in the web client source code.

I created a branch to solve these issues in:
lp:~openerp-community/openerp-web/6.1-bugfix-share_errors

1. The snippet JS code provided by the share wizard is incomplete, a correct parametrization for share a module in edit mode must be include the 'action_buttons' parameter. Eg:

<script type="text/javascript" src="http://localhost:8069/web/webclient/js"></script>
<script type="text/javascript">
    new openerp.init(["web"]).web.embed("http://localhost:8069", "openerp611", "embedded-XXX", "PAS-XXX",262,
            {"search_view": true,
             "display_title": false,
             "action_buttons": true});
</script>

Anyway, this error can be corrected by the user fixing the code after copy.

2. static/src/js/core.js cause a JS error clicking in a many2one field (editing a registry with the share module). The message says that there is no object named 'options'.

3. JsonRequest.dispatch (http.py) not being managed properly the JSONP request by the share module. The step one of JSONP 2 steps is misinterpreted.

4. Errors raised in a Ajax request from the share module are not cached. In share client a object openerp.web.EmbeddedClient is used instead openerp.web.WebClient, but the embedded class don't have a crash manager like WebClient.

5. The dialogs launched by the share module are displayed with no styles. I have added the CSS class when the jQuery dialog is created.

Related branches

summary: - Display and ajax error on share module in 6.1
+ Display and ajax errors on share module in 6.1
Amit Parik (amit-parik)
affects: openobject-client-web → openerp-web
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Mariano,

You didn't provide a error message, which you have faced. Would you please look lp:902106, here two error of share module is already fixed on trunk and currently this module working as error free.

So please check it again and If you still faced the problem then provide a error message which you have faced.

Thanks and waiting for your reply!

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Web because there has been no activity for 60 days.]

Changed in openerp-web:
status: Incomplete → Expired
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Mariano,

Would you please try with the latest updated code.

If you still face the problem then you can reopen this with more information.

Thanks.

Changed in openerp-web:
status: Expired → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.