Odoo Help

Welcome!

This community 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.

0

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

By
Zakir Husain
on 7/1/15, 3:49 PM 3,624 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'

1

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
Tiny ERP Pvt Ltd
http://www.odoo.com
5975
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.

 

Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 

 

We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :

 

  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 7/2/15, 2:18 AM

hi,

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.

thanks.

It's working good @ Emipro +1

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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