Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2980 Widoki

Hi everyone,

I'm trying to delete product package (Inventory>Products>Package) that is not being used any more. 

Getting error: 
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Product Moves (Stock Move Line) (stock.move.line), Constraint: stock_move_line_result_package_id_fkey

When I go inside package and check Package Transfers there are some transfers here and I get it - it is not possible to delete it because of that. Could we delete via database (how?) and is it strictly not recommended? Or could I remove package from transfer somehow and then delete it?

There is no option to archive it. Odoo is v14 (sh). Thank you.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

From the error message, it seems that the product moves is already created in your correspondent master product or package. Thus, your package cannot be deleted. To verify this, try to see what product inside that package you want to delete, and see its product moves.

if you want to delete it from query, you surely can do that, but this will affect other things like journal entry if your system are using automatic accounting calculation. So i recommend you to not doing anything regarding that package but archiving it instead.

Best regards,

Altela (altelasoftware.com)

Awatar
Odrzuć
Autor

Yes, there are product moves on this package. I thought so - just wanted to check. Thank you for your reply!

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
2281
1
lut 22
3299
1
wrz 21
2280
0
lip 21
3017
1
maj 22
5848