Go to file
2026-06-19 09:43:32 +07:00
data first commit 2026-06-17 14:59:07 +07:00
models refactor: replace SQL constraints with models.Constraint in StockInventoryBackdateLine model 2026-06-19 09:43:32 +07:00
report first commit 2026-06-17 14:59:07 +07:00
security first commit 2026-06-17 14:59:07 +07:00
tests first commit 2026-06-17 14:59:07 +07:00
views first commit 2026-06-17 14:59:07 +07:00
wizard first commit 2026-06-17 14:59:07 +07:00
__init__.py first commit 2026-06-17 14:59:07 +07:00
__manifest__.py first commit 2026-06-17 14:59:07 +07:00
.gitignore first commit 2026-06-17 14:59:07 +07:00
README.md first commit 2026-06-17 14:59:07 +07:00

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.