Traceback (most recent call last): File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 638, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 675, in dispatch result = self._call_function(**self.params) File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 331, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo10/odoo-dev/odoo/odoo/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 324, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 933, in __call__ return self.method(*args, **kw) File "/home/odoo10/odoo-dev/odoo/odoo/http.py", line 504, in response_wrap response = f(*args, **kw) File "/home/odoo10/odoo-dev/odoo/addons/web/controllers/main.py", line 882, in call_button action = self._call_kw(model, method, args, {}) File "/home/odoo10/odoo-dev/odoo/addons/web/controllers/main.py", line 870, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/home/odoo10/odoo-dev/odoo/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/home/odoo10/odoo-dev/odoo/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) TypeError: import_users() takes exactly 5 arguments (2 given)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2184
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Jun 23
|
8112 | ||
|
1
Jan 17
|
4810 | ||
|
2
Mar 21
|
5263 | ||
|
0
May 22
|
889 | ||
|
2
Sep 21
|
4516 |
may be you're mixing old api code with v10 api. Could you copy/past import_user() code ?
def import_users(self):
for biometric_import_user in self.browse(cr, uid, ids, context=context):
biometric_import_user.create_users_in_openerp()
https://github.com/Pravithavarghese1/hr_biometric_machine
Thank you Soo much Pravitha...