跳至内容
菜单
此问题已终结
2 回复
1295 查看

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 .. 

形象
丢弃
最佳答案

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

形象
丢弃