Short answer - you cannot - for your own good.
This is a fundamental of double entry bookkeeping, every movement has a credit and a debit. It makes it easier to track where your money is going.
It is poor accounting practices to just re-write entries in the ledger. If you made a mistake, make a correcting entry that cancels out the old stock move. Like if you shipped it to a partner in the computer by mistake, create a return with a note that this was just a computer error.
If your database is getting too big, I would see about exporting the information somehow.
update stock_move set state = 'draft' where id = ?;
Then you can delete them from within OpenERP safely. Or if safety is not a concern...
delete from stock_move where id = ?;
I don't recommend the latter but I've had to do it when a CSV upload test generated several hundred test records and I needed them gone for the next iteration of testing.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/8/13, 2:26 PM|
|Seen: 6825 times|
|Last updated: 4/13/16, 4:50 PM|