Skip to Content
Menu
This question has been flagged
2 Replies
3599 Rodiniai

Odoo Studio (v14) randomly disappeared for some reason.  I no longer have the icon in the toolbar at the top. So I tried to upgrade the app but I get the following error:


Exception: Module loading web_studio failed: file web_studio/security/ir.model.access.csv could not be processed:
 Invalid external ID base.group_system: expected model 'res.groups', found 'res.users'
Invalid external ID base.group_system: expected model 'res.groups', found 'res.users'


No sure why it disappeared and wondering if it has anything to do with this error.


Portretas
Atmesti
Best Answer

Hi,

Problem seems to be of your database, rather than the module. Did you or any one played with External Identifiers in the database ? 

The error message says that the External ID: base.group_system is expected to point to res.groups model, but in your db, it is pointing to a different table, ie, res.users.


You can activate the developer mode in the database and open the External Identifiers menu under Settings -> Technical and search for group_system and see to which record this id is pointing to and if it is pointing to a user, you have change it to point it to the groups.


Thanks

Portretas
Atmesti
Autorius

This fixed it. Thank you so much!!

Best Answer

Hi,

Try upgrading the base module and see if it works. If you have any custom modules installed, then you could try removing them and upgrading the web_studio module, if it's possible.If none of this works, then you could try it with the latest addons.

Hope it helps

Portretas
Atmesti
Autorius

I tried to upgrade the the base module and I got this error message.

Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 580, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/src/odoo/odoo/models.py", line 4213, in _load_records
raise ValidationError(
odoo.exceptions.ValidationError: For external id base.group_system when trying to create/update a record of model res.groups found record of different model res.users (3118)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 919, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1374, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/user/printnode_base/controllers/main.py", line 84, in _call_kw
result = super(DataSetProxy, self)._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1362, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-77>", line 2, in button_immediate_upgrade
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 658, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 596, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 400, in load_modules
loaded_modules, processed_modules = load_module_graph(
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/home/odoo/src/odoo/odoo/tools/convert.py", line 681, in _tag_root
raise ParseError('while parsing %s:%s, near\n%s' % (
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 652, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /home/odoo/src/odoo/odoo/addons/base/security/base_groups.xml:14, near
<record model="res.groups" id="group_system">
<field name="name">Settings</field>
<field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>

Related Posts Replies Rodiniai Veikla
1
spal. 24
2092
2
spal. 24
3431
1
liep. 24
2707
0
birž. 24
1477
2
vas. 24
3078