| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 39 |
| Technical Name |
delete_done_picking |
| License | OPL-1 |
Delete Done Picking
Force-delete validated stock transfers that are stuck in Done state — including their stock moves, move lines, and valuation layers.
⚠ Use with cautionOverview
In standard Odoo, validated (Done) stock transfers cannot be deleted — only cancelled under strict conditions. This module adds a Force Delete button directly on the transfer form that lets authorised users bypass this restriction and permanently remove the picking and all related data.
Features
Force Delete button
Red button visible only on Done transfers, right in the header bar.
Full cleanup
Deletes stock moves, move lines, and unreserves quantities before removal.
Valuation cleanup
Removes associated stock valuation layers to keep your costing clean.
Safe redirect
After deletion, automatically redirects to the Transfers list view.
How to use
Delete Done Picking.Force Delete button in the header. Confirm the action.Technical details
| Property | Value |
|---|---|
| Module name | delete_done_picking |
| Category | Inventory |
| Depends on | stock |
| Inherited model | stock.picking |
| New method | action_force_delete() |
| View modified | stock.view_picking_form (header) |
| Compatible versions | Odoo 16, 17 |
| License | LGPL-3 |
Changelog
v1.0 — Initial release. Force delete of done pickings with full stock move and valuation layer cleanup.
Screenshots
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module