コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5691 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 25
726
1
12月 24
5745
0
11月 24
2283
2
7月 24
4534
0
4月 24
2816