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

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

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

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 

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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.

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

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

Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
703
2
thg 4 25
1121
0
thg 1 25
1086
1
thg 12 24
2528
0
thg 4 24
1135