Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5146 Visualizzazioni

i have a lot of products i didn`t use , 0 sale 0 purchase 0 qty . i want to delete all this products . which method should i use  
code ORM unlike  , or from database ? 

Avatar
Abbandona
Risposta migliore

Hi,

Always don't use DB if you don't know the consequences.

You can archive them, You will filter them from list view, select them and from actions menu select Archive.

If you want to delete them completely, You can filter them from list view, select them and from actions menu select delete.

If you can select them from list view, you can write code on product_template model and use ORM unlink.

Avatar
Abbandona
Autore

thanks waleed

Post correlati Risposte Visualizzazioni Attività
0
lug 25
1857
2
nov 24
7427
2
ott 24
4136
2
ago 24
2326
3
lug 24
8789