Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
2787 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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 

Avatar
Abbandona

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

Risposta migliore

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.

Avatar
Abbandona
Autore Risposta migliore

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

Thanks!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 25
706
2
apr 25
1124
0
gen 25
1088
1
dic 24
2530
0
apr 24
1140