تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5408 أدوات العرض

I'm now getting a "Odoo Warning"   "Integrity Error - duplicate key value violates unique constraint "account_invoice_line_pkey" DETAIL: Key (id)=(46) already exists.

This was when I clicked the "Update" button on a new invoice for Tax.    It happened prior when I just tried to Save the Invoice.    As far as I can tell looking in the database there shouldn't be any ID=46 already.

Pressing save I get a new error:    "wkf_instance_pkey"  DETAIL: Key (id)=(43) already exists.

If I press Save again I get the following:  "wkf_instance_pkey" DETAIL Key (id)=(44) already exists.


What's going on and how should I get this fixed?


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Not sure why this happened, but the solution was to keep clicking on the SAVE button until the ID incremented enough to be able to save.    Could have been that we restored over existing data and the indexes were off.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 24
4593
0
نوفمبر 24
1876
2
يوليو 24
3805
0
أبريل 24
2419
3
مارس 24
3872