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

Hi,

Odoo community version 14.

I got the following errors when deleting newly created pricelist

"Validation Error
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.
Model: Sales Order (sale.order), Constraint: sale_order_pricelist_id_fkey"

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello ODBWilson

you are trying to delete pricelist which is already used in sale order.so you are not allowed to delete that pricelist.

Try to delete pricelist by archiving sale order which is having this pricelist set.

Hope this will help.

Thanks 

อวตาร
ละทิ้ง

Archiving the sale order does not help, because it will still refer to the pricelist.

คำตอบที่ดีที่สุด

There are objects in the database - in this case sale orders - which are refering to this pricelist. Therefore it can not be deleted. You should change or delete the refering objects first.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks for your help. Archiving price list would do.  I will try to delete related sale orders later to see.

Thanks!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 25
734
2
เม.ย. 25
1176
0
ม.ค. 25
1130
1
ธ.ค. 24
2572
0
เม.ย. 24
1182