Overview
Odoo 19 refuses to delete a line of a confirmed purchase order, so buyers set the quantity to 0 and leave dead lines and cancelled moves behind. This module lets an authorized user delete such a line directly. It works only when nothing was received, the line is not on any vendor bill, and the order is not locked. The related stock moves are removed from the receipt, an empty receipt is deleted, and the deletion is written to the order chatter. Any line that fails the checks keeps the standard behavior and the refusal explains why. It adds no menu, setting or group.
Usage steps
- 1
Confirm the purchase order
Purchase > Orders > Requests for Quotation, open an order and press Confirm Order.
- Draft and sent quotations keep standard behavior
- Section and note lines are unaffected
- 2
Set the quantity to zero
On the Products tab, set the ordered quantity of the unwanted stored-product line to 0.
- Stored products need quantity 0 first
- Services and consumables may have any quantity
- 3
Delete the line
Click the delete icon on the line, then save the order.
- Existing purchase user rights decide who may delete
- A refused line blocks the whole deletion and nothing is removed
- 4
Read the refusal reasons
If a line is blocked, the message lists each product and its reason.
- Received goods, vendor bills, locked orders and down payments block deletion
- Sales, manufacturing and chained transfers also block it
- 5
Check the receipt and chatter
Open the Receipt button of the order and the chatter after deletion.
- The line stock moves are gone from the receipt
- An empty receipt is deleted and the removal is logged
Screens
Illustrative mockups with placeholder data.
—
Chatter note after deletion
Deleted line Placeholder value
Removed stock moves Placeholder value
Roles
| Role |
|---|
| Purchase user |
| Purchase manager |
| Warehouse officer |
Dependencies
- purchase_stock
Related applications
Applications that work together with this one.
Purchase Order Lines
Same purchase-line area, improves how order lines are handled.
osloop_purchase_linesPurchase Wholesale Pricing & Price Visibility
Also works on purchase order lines, controlling their prices.
osloop_purchase_price_controlPurchase Order Discount
Another purchase order line extension on the same dependency.
osloop_purchase_discountWant to know more or try this app? Contact us
Delete a zero-quantity line from a confirmed purchase order and remove its stock moves from the receipt.