Skip to Content
Menu
This question has been flagged

Hi i am using odoo 15 CE and i have installed oca timesheet module, i had created department and out of that i had deleted 1 department and i am getting this error then
Missing Record

×

Record does not exist or has been deleted. (Record: hr.department(7,), User: 2)

how can i fix this using python or postgresql

Avatar
Discard
Best Answer

Hi,

You can go to the database and then find the records where the colum_name of hr.department probably department_id and change all of those null or any corresponding value

The query will be something like this

Select * from you_model where your_model.department_id = 7

Replace your_model with the model where you are getting the error


Hope it helps


Avatar
Discard
Related Posts Replies Views Activity
2
May 24
1120
0
Nov 23
890
2
Jul 23
4577
1
Nov 22
2769
2
Mar 15
5216