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

As partb of truncating my openerp database,I deleted all my delivery orders,incoming shipments and now the pending items is the sales order which is in DONE status.How can I delete a sales order in this status.When I try to delete I get an error msg like

Invalid Action!

In order to delete a confirmed sales order, you must cancel it.
To do so, you must first cancel related picking for delivery orders.

but I dont have related picking for the delivery orders and also any delivery orders pending in my database.

Avatar
Abbandona
Risposta migliore

Sales orders in done state cannot be deleted in the regular OpenERP way. Truncating a database is generally a bad idea. Some complications can occur because of lost connections and you will have no idea where it might crash.

It is nearly always better to just start over with a clean database. Perhaps make some backups during the testing so you can always restore to a step in the process. 

 

If you really still insist on truncating the database, then perhaps look up the sale_order or sale_order_line table and set all the relations to the pickings to false. 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 24
15601
0
nov 18
3018
1
mar 15
12125
0
mar 15
3657
2
lug 24
1105