Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5442 Vistas

The requested operation ("read" on "Job Position" (hr.job)) was rejected because of the following rules:
- Job multi company rule

Note: this might be a multi-company issue.

(Records: False (id=1), User: asia (id=7))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/odoo-13.0.post20191119/odoo/fields.py", line 962, in __get__
recs._fetch_field(self)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 2929, in _fetch_field
self._read(fnames)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 3041, in _read
raise self.env['ir.rule']._make_access_error('read', forbidden)
odoo.exceptions.AccessError: ('The requested operation ("read" on "Job Position" (hr.job)) was rejected because of the following rules:\n- Job multi company rule\n\nNote: this might be a multi-company issue.\n\n(Records: False (id=1), User: india (id=8))', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/odoo-13.0.post20191119/odoo/addons/web/controllers/main.py", line 110, in wrap
return f(*args, **kwargs)
File "/home/odoo/odoo-13.0.post20191119/odoo/addons/web/controllers/main.py", line 1899, in index
return self.base(data, token)
File "/home/odoo/odoo-13.0.post20191119/odoo/addons/web/controllers/main.py", line 1851, in base
export_data = records.export_data(field_names).get('datas',[])
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 890, in export_data
return {'datas': self._export_rows(fields_to_export)}
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 847, in _export_rows
lines2 = value._export_rows(fields2, _is_toplevel_call=False)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 827, in _export_rows
value = record[name]
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 5564, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/home/odoo/odoo-13.0.post20191119/odoo/fields.py", line 981, in __get__
self.compute_value(record)
File "/home/odoo/odoo-13.0.post20191119/odoo/fields.py", line 1060, in compute_value
records._compute_field_value(self)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 3880, in _compute_field_value
getattr(self, field.compute)()
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 1620, in _compute_display_name
names = dict(self.name_get())
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 1638, in name_get
result.append((record.id, convert(record[name], record)))
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 5564, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/home/odoo/odoo-13.0.post20191119/odoo/fields.py", line 964, in __get__
record._fetch_field(self)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 2929, in _fetch_field
self._read(fnames)
File "/home/odoo/odoo-13.0.post20191119/odoo/models.py", line 3041, in _read
raise self.env['ir.rule']._make_access_error('read', forbidden)
odoo.exceptions.AccessError: ('The requested operation ("read" on "Job Position" (hr.job)) was rejected because of the following rules:\n- Job multi company rule\n\nNote: this might be a multi-company issue.\n\n(Records: False (id=1), User: india (id=8))', None)

Avatar
Descartar
Mejor respuesta

Hi,

This is a multi-company issue. What the problem happened here is, you created job positions with some other companies and assigned those jobs to another company's employee. Else from the user who doesn't have access to the particular company (from the job position masters) is trying to export the employee details.

Avatar
Descartar
Autor

Thank you very much

Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 25
3639
1
oct 24
3278
2
jul 24
2212
0
may 23
2415
9
dic 23
33461