CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
Odoo Training Center
|Asked: 3/8/13, 2:26 PM|
|Seen: 11230 times|
|Last updated: 4/13/16, 4:50 PM|