Stock account move reset to draft
Project description
This module allows a vendor bill to be reverted to draft status even when an SVL (Stock Valuation Layer) record is created due to a price difference between the receipt and the vendor bill, when inventory from the receipt has yet to be consumed. When a vendor bill is reset to draft, as applicable, a new SVL record is generated to offset the valuation difference that was generated upon the bill’s confirmation.
Table of contents
Use Cases / Context
Typically, when a purchase invoice is created at a price different from the price at which the SVLs of the incoming picking were initially created and confirmed, SVLs are generated to account for the price difference. Once this happens, the invoice cannot normally be reverted to draft due to stock_account restrictions.
Imagine international business settings where exchange rates are updated daily; this limitation can be problematic. For example, if goods are received on April 17th and the vendor bill is processed on April 18th with a different exchange rate, an SVL record is generated, locking the vendor bill. If a user then realizes a mistake, such as processing the bill for the incorrect purchase order, they are unable to cancel it.
Usage
Create a product category with Costing Method: Average Cost (AVCO) or First In First Out (FIFO).
Create a product linked to the category created before.
Create a purchase order and adds a product line with quantity 1 and price 10.
Confirms the purchase order and validates the incoming picking.
Creates an invoice from the purchase order.
Changes the invoice line price to 12 and confirm the invoice.
It is possible to reset the invoice to draft (a new SVL record to offset the existing SVL difference will be created).
When attempting to reset an invoice to draft for a product that has been partially or fully consumed, the system will display the following error message: “The inventory has already been (partially) consumed.” In that case, consider using landed costs to adjust the valuation of the product as necessary.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Víctor Martínez
Pedro M. Baeza
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/account-invoicing project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo_addon_stock_account_move_reset_to_draft-16.0.1.0.1-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_stock_account_move_reset_to_draft-16.0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d358ce609dde9b801b183921b369b918d824f9218e6576f21aae53741033ac3f |
|
MD5 | a1b74989a4f92f245a92e3eb122c3b1f |
|
BLAKE2b-256 | fcd5d57860c523f6e19335e6610634af68153c7d4e59030bd164be58327625e8 |