stock_inventory_scrap_backdate/README.md
2026-06-17 14:59:07 +07:00

1.1 KiB

Stock Inventory and Scrap Backdate

This module enables backdating for stock inventory adjustments and scrap orders in Odoo 19.

Features

  • Backdate physical inventory adjustments using a custom wizard/document flow.
  • Backdate scrap orders directly from the scrap document form view.
  • Automatically handles shifting dates of moves, move lines, product valuation layers (product.value), and journal entries.
  • Schema-aware SQL queries ensure compatibility with Odoo 19 database structure.

Installation

  1. Copy this module to your custom addons directory.
  2. Update the app list in Odoo.
  3. Install the module.

Usage

Inventory Backdate:

  1. Go to Inventory > Operations > Backdated Adjustments.
  2. Create a new adjustment, set the target location and the past datetime.
  3. Add lines manually or click Load Products to load quantities at that historical moment.
  4. Set the Counted Qty and validate.

Scrap Backdate:

  1. Go to Inventory > Operations > Scrap.
  2. Create a scrap, set the date to a past date.
  3. Validate the scrap order.