How to manage their access rights throughout the application base_import in odoo 12?
For example, the admin creates a User1 and wants that user to import csv file but i got the next message.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/odoo/odoo-server/odoo/service/server.py", line 409, in app
return self.app(e, s)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 128, in application
return application_unproxied(environ, start_response)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1318, in __call__
return self.dispatch(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1291, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1486, in dispatch
result = ir_http._dispatch()
File "/odoo/odoo-server/addons/website_sale/models/ir_http.py", line 15, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/odoo/odoo-server/addons/web_editor/models/ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 398, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 26, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 207, in _dispatch
return cls._handle_exception(e)
File "/odoo/odoo-server/addons/website/models/ir_http.py", line 195, in _handle_exception
return super(Http, cls)._handle_exception(exception)
File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 31, in _handle_exception
response = super(IrHttp, cls)._handle_exception(exc)
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 177, in _handle_exception
return request._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 774, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
result = request.dispatch()
File "/odoo/odoo-server/odoo/http.py", line 833, in dispatch
r = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/base_import/controllers/main.py", line 20, in set_file
'file_type': file.content_type,
File "/odoo/odoo-server/odoo/models.py", line 3307, in write
self._write(store_vals)
File "/odoo/odoo-server/odoo/models.py", line 3375, in _write
val = field.convert_to_column(val, self, vals)
File "/odoo/odoo-server/odoo/fields.py", line 1786, in convert_to_column
raise UserError(_("Only admins can upload SVG files."))
odoo.exceptions.UserError: ('Only admins can upload SVG files.', '') - - -
How to create access right for base.group_user to import files
Is it possible?