Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
2792 Представления

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
711
2
апр. 25
1127
0
янв. 25
1092
1
дек. 24
2536
0
апр. 24
1142