OpenERP 6.1: base/res/res_users.py: The context ismissing in the name_search method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP's Framework R&D |
Bug Description
Hi,
in base/res/
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=100):
if not args:
args=[]
if not context:
ids = []
if name:
ids = self.search(cr, user, [('login'
if not ids:
ids = self.search(cr, user, [('name'
return self.name_get(cr, user, ids)
it should be:
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=100):
if not args:
args=[]
if not context:
ids = []
if name:
ids = self.search(cr, user, [('login'
if not ids:
ids = self.search(cr, user, [('name'
return self.name_get(cr, user, ids, context=context)
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 17 lines (+3/-3)1 file modifiedopenerp/addons/base/res/res_users.py (+3/-3)
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
status: | New → Incomplete |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
Hello,
It has been Fixed in https:/ /code.launchpad .net/~openerp- dev/openobject- server/ trunk-bug- 1043871- tpa
revision-id: <email address hidden>
revno: 4381
Thanks,
Turkesh Patel