Cannot open Address Book's Addresses in web client

Bug #703226 reported by Quentin THEURET @Amaris
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Revno 3270

With new DB with demo data and only base modules (base, base_setup, web_livechat). Can't open Addresses (Sales -> Address Book -> Addresses).

Traceback :
<type 'exceptions.NameError'>: name 'self' is not defined
      args = ("name 'self' is not defined",)
      message = "name 'self' is not defined"

Related branches

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Same problem for me. Problems with the "self" variable in the context - http://bazaar.launchpad.net/~openerp/openobject-server/trunk/view/head:/bin/addons/base/res/partner/partner_view.xml#L111

ERROR:tools.expr_eval:{"search_default_customer":1,"search_default_partner_id":self}
Traceback (most recent call last):
  File "/home/komsas/openerp/openerp6/openobject-client/bin/tools/__init__.py", line 52, in expr_eval
    temp = eval(string, context)
  File "<string>", line 1, in <module>
NameError: name 'self' is not defined

Revision history for this message
xrg (xrg) wrote : Re: [Bug 703226] [NEW] addresses

On Saturday 15 January 2011, you wrote:
> Public bug reported:
>
> Revno 3270
>
> With new DB with demo data and only base modules (base, base_setup,
> web_livechat). Can't open Addresses (Sales -> Address Book ->
> Addresses).
>
> Traceback :
> <type 'exceptions.NameError'>: name 'self' is not defined
> args = ("name 'self' is not defined",)
> message = "name 'self' is not defined"

What client are you using?

Tried with Gtk, it will just print the error at console and continue.

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote : Re: addresses

Yes gtk only prints, but web client pop up error and don't open addresses list.

Revision history for this message
xrg (xrg) wrote : Re: [Bug 703226] Re: addresses

On Saturday 15 January 2011, you wrote:
> Yes gtk only prints, but web client pop up error and don't open
> addresses list.

There is an obvious question about the {"search_default_partner_id":self }
expression in the context of res.partner.address at
bin/addons/base/res/partner/partner_view.xml:111

To me, one issue is that the syntax options at these context dictionaries is
not well defined (=documented) and may vary accross the clients.

In the meanwhile, you can remove that part of the extension and let the
addresses form open.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The original patch was incorrect, and was reverted by server revision 3278 <email address hidden>, and to be replaced by a proper fix.

Thanks a lot for the detailed bug report!

summary: - addresses
+ Cannot open Address Book's Addresses in web client
Changed in openobject-server:
milestone: none → 6.0
status: Confirmed → Fix Released
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.