Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4003 Lượt xem

I want to remove a company from my database, But I couldn't delete it, It's showing  

"" The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Fiscal Position (account.fiscal.position), Constraint: account_fiscal_position_company_id_fkey ""

But there is no invoice and sale orders.

Can anyone help me !!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

As per the error message, it seems you have some records in the table/model:  account_fiscal_position (account.fiscal.position) having company_id value set to this company.

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you Farsana

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
1332
1
thg 11 23
13663
3
thg 10 23
9166
1
thg 5 21
9717
1
thg 5 20
3890