Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
9056 มุมมอง

I Can't able to delete a company after being created giving error as

The operation cannot be completed, probably due to the following:

- deletion: you may be trying to delete a record while other records still reference it

- creation/update: a mandatory field is not correctly set

[object with reference: Company - res.company]


But when trying to delete from SQL Line It shows as

ERROR: null value in column "partner_id" violates not-null constraint

DETAIL: Failing row contains (12, ACCOUNTS, null, 21, null, 2017-03-10 07:35:53.81076,

<header>

<pageTemplate>

<frame id="first" x1="1.3cm..., a4, 1, iVBORw0KGgoAAAANSUhEUgAAALQAAAAqCAYAAAAaoXEBAAAiZElEQVR4nO2de4yc..., 1, null, null, account@prakruti.com, 1, f, null,

<header>.........more info


Please can anyone help me on this

อวตาร
ละทิ้ง

This company id might be used in some other records, thats why you are getting this on deleting, so first try to delete those records having this company id and after that you just remove this company

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
6252
1
มี.ค. 15
4284
1
ก.ค. 23
2816
How to remove a existing company odoo 15 แก้ไขแล้ว
1
ต.ค. 22
4339
1
พ.ค. 21
10059