Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5448 Widoki

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)

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

Thank you very much

Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
3651
1
paź 24
3342
2
lip 24
2214
0
maj 23
2426
9
gru 23
33471