[trunk] parent.id doesn't work in base contact

Bug #917180 reported by tfr (Openerp)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Web Team

Bug Description

How to reproduce :
1) apply this patch to your addons lp:~openerp-dev/openobject-addons/trunk-fix-basecontact
2) create a database with base_contact
3) Partner form => select a location then

Client Traceback (most recent call last):
  File "/home/openerp/mck/openerp/web/addons/web/common/http.py", line 176, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/openerp/mck/openerp/web/addons/web/controllers/main.py", line 864, in call
    return self.call_common(req, model, method, args, domain_id, context_id)
  File "/home/openerp/mck/openerp/web/addons/web/controllers/main.py", line 840, in call_common
    c, d = eval_context_and_domain(req.session, context, domain)
  File "/home/openerp/mck/openerp/web/addons/web/controllers/main.py", line 557, in eval_context_and_domain
    e_domain = session.eval_domain(domain or [])
  File "/home/openerp/mck/openerp/web/addons/web/common/session.py", line 188, in eval_domain
    return cdomain.evaluate(context or {})
  File "/home/openerp/mck/openerp/web/addons/web/common/nonliterals.py", line 226, in evaluate
    final_domain.extend(domain.evaluate(ctx))
  File "/home/openerp/mck/openerp/web/addons/web/common/nonliterals.py", line 226, in evaluate
    final_domain.extend(domain.evaluate(ctx))
  File "/home/openerp/mck/openerp/web/addons/web/common/nonliterals.py", line 137, in evaluate
    return eval(self.get_domain_string(), SuperDict(ctx))
  File "<string>", line 1, in <module>
  File "/home/openerp/mck/openerp/web/addons/web/common/nonliterals.py", line 194, in __getattr__
    raise AttributeError(name)
AttributeError: id

Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Did this worked in the gtk client?

Changed in openerp-web:
status: Confirmed → New
importance: Medium → Low
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Ok, it does seem to work in the gtk client.

Changed in openerp-web:
status: New → Confirmed
Revision history for this message
Vishmita Jadeja (openerp) (vja-openerp) wrote :

Hello tfr,

It has been fixed in web client rev: 2011.
Please update your code if problem still occurs than let us know.

Thanks,
Vishmita jadeja(vja).

Changed in openerp-web:
status: Confirmed → Fix Released
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.