Skip to Content
Menu
This question has been flagged
2 Replies
1292 Views

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Payroll Note (hr.payroll.note) Constraint: hr_payroll_note_company_id_fkey 




هذه الرسالة تظهر لي عندما اقوم بحذف الفروع الخاصة بالشركة 

This Message Disappeared When I Try To Remove Company Branches  ?? 

I need Help .. 

Avatar
Discard
Best Answer

Hi,

Once a company is created, we will not be able to delete it as dependencies are created in the system. As per the error message, it seems you have some records in the table/model:  hr.payroll.note, having company_id value set to this company.

So clear those records or instead of deleting keep the company archived.


Hope it helps

Avatar
Discard