Skip to Content
osloop_purchase_zero_line_delete

Delete Zero-Quantity Purchase Lines

Delete a zero-quantity line from a confirmed purchase order and remove its stock moves from the receipt.

  • Odoo 19
  • Purchase
  • 19.0.1.0.0
1

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.

2

Usage steps

  1. 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. 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. 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. 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. 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
4

Roles

Benefiting roles
Role
Purchase user
Purchase manager
Warehouse officer
5

Dependencies

  • purchase_stock

Want 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.

Contact us