The context menu of 'Open' button in many2one widget display wrong position (In One2Many field form).

Bug #795471 reported by Jacara
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Low
OpenERP Publisher's Warranty Team

Bug Description

The context menu of 'Open' button in many2one widget display wrong position.

I tested in chromium-browser and firefox on windows and linux too.

Sorry my english so bad.

See an attachment

Tags: maintenance

Related branches

Revision history for this message
Jacara (baskhuujacara) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Jacara,

I have checked your issue in chromium-browse, Firefox on windows, Linux but I have not faced any problem related to context menu. I have attached screenshot for your reference so please check it and notify us where you faced the problem.

Thanks and waiting for your reply.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openobject-client-web:
status: New → Incomplete
Revision history for this message
Jacara (baskhuujacara) wrote :

Hello Parmar,

You have to check in one2many dialog. For example field product_id of purchase order lines form display.

Revision history for this message
Jacara (baskhuujacara) wrote :

Please check this code:

addons/openerp/static/javascript/form.js line 888:

        var body_width = jQuery(document.body).width();
        if (parseInt($menu.css("left")) + menu_width > body_width) {
            $menu.offset({ left: body_width - menu_width - 10 });
        }

This case context menu div element display on inner frame dialog. But jQuery(document.body).width() returns browser full screen's width value.

Revision history for this message
Jacara (baskhuujacara) wrote : Re: [Bug 795471] Re: The context menu of 'Open' button in many2one widget display wrong position.

Hello

I found the bug.

addons/openerp/static/javascript/form.js line 890

i fixed this line

$menu.offset({ left: body_width - menu_width - 10 });

to

$menu.css({'left':(body_width - menu_width - 10)+'px'});

then my problem has resolved.

On Fri, Jun 17, 2011 at 2:08 PM, Jacara <email address hidden> wrote:

> Please check this code:
>
> addons/openerp/static/javascript/form.js line 888:
>
> var body_width = jQuery(document.body).width();
> if (parseInt($menu.css("left")) + menu_width > body_width) {
> $menu.offset({ left: body_width - menu_width - 10 });
> }
>
> This case context menu div element display on inner frame dialog. But
> jQuery(document.body).width() returns browser full screen's width value.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/795471
>
> Title:
> The context menu of 'Open' button in many2one widget display wrong
> position.
>
> Status in OpenERP Web Client:
> Incomplete
>
> Bug description:
> The context menu of 'Open' button in many2one widget display wrong
> position.
>
> I tested in chromium-browser and firefox on windows and linux too.
>
> Sorry my english so bad.
>
> See an attachment
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-client-web/+bug/795471/+subscriptions
>

--
Хүндэтгэсэн :
   Басхүү.Л [USI]

summary: The context menu of 'Open' button in many2one widget display wrong
- position.
+ position (In One2Many field form).
Changed in openobject-client-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Changed in openobject-client-web:
status: Incomplete → Confirmed
importance: Undecided → Low
tags: added: maintenance
Changed in openobject-client-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in openobject-client-web:
status: Confirmed → In Progress
Revision history for this message
Somesh Khare (somesh.khare) wrote :

Hello Jacara,

Thanks for your contribution about this issue.

Issue has been fixed in the lp:~openerp-dev/openobject-client-web/6.0-opw-16614-skh branch.

Revision ID: <email address hidden>
Revision Number: 4675

It will be merged soon with the stable 6.0.

Thanks once again.

Changed in openobject-client-web:
status: In Progress → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → Fix Released
milestone: none → 6.0.4
Revision history for this message
Thomas Winteler (Win-Soft) (thomi) wrote :

Hey

Just tested this with latest revno of addons, server and web.. and ;).. done.. thanks a lot

regards
thomi

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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