Odoo Help


TypeError: browse() got multiple values for keyword argument 'context'

Zakir Husain
on 7/1/15, 3:49 PM 5,681 views

when i am browse a object i am getting this error:

          salary_obj.browse(self, cr, uid, employeesalary.salary_id.id, context=context)

Please can anyone help me on this error.

Traceback (most recent call last):

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 567, in dispatch

result = self._call_function(**self.params)

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 303, in _call_function

return checked_call(self.db, *args, **kwargs)

File "D:\Projects\NewOE\Odooo v8\openerp\service\model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 300, in checked_call

return self.endpoint(*a, **kw)

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 796, in __call__

return self.method(*args, **kw)

File "D:\Projects\NewOE\Odooo v8\openerp\http.py", line 396, in response_wrap

response = f(*args, **kw)

File "D:\Projects\NewOE\Odooo v8\addons\web\controllers\main.py", line 953, in call_button

action = self._call_kw(model, method, args, {})

File "D:\Projects\NewOE\Odooo v8\addons\web\controllers\main.py", line 941, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "D:\Projects\NewOE\Odooo v8\openerp\api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "D:\Projects\NewOE\Odooo v8\addons\hr_auditor_payroll\hr_payroll_process.py", line 82, in generate_payroll

salarycomponent = salarycomponent_obj.browse(self, cr, uid, employeesalary.salary_component_id.id, context=None)

File "D:\Projects\NewOE\Odooo v8\openerp\api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

TypeError: browse() got multiple values for keyword argument 'context'



just make change as like below in your code. 

salary_obj.browse(cr, uid, employeesalary.salary_id.id, context=context) # just remove self because it must not be there.

I think it will resolve your issue.


It's working good @ Emipro +1

Ankit H Gandhi(AHG)
on 5/4/16, 7:29 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/1/15, 3:49 PM
Seen: 5681 times
Last updated: 7/2/15, 3:32 PM