stock_account_move_reset_to_draft
This module lets posted purchase invoices be reset to draft by balancing their stock valuation entries while preserving inventory consistency.
Key Features
- account.move: Allows resetting purchase invoices to draft by generating reversal stock valuation layers when valuation differences exist and the layers remain untouched.
- account.move: Raises an error when stock valuation records are intertwined with other posted moves to prevent inconsistent inventory valuation during reset.
- account.move: Blocks the reset if the originating stock valuation layer has been partially or fully consumed, ensuring valuation accuracy.
- account.move: Recomputes the standard price of average-cost products after creating reversal valuation layers so inventory costs stay aligned.
- account.move: Forces the reset-to-draft button to remain available on posted bills that carry stock valuation layers despite usual hash restrictions.