.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association
=================================
Stock account move reset to draft
=================================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b914e88278181761aa51b12cb9d739d0a832bc583a7a6c71ae440bbb8830cb85
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/17.0/stock_account_move_reset_to_draft
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-stock_account_move_reset_to_draft
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
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**
.. contents::
:local:
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
=====
1. Create a product category with Costing Method: Average Cost (AVCO) or
First In First Out (FIFO).
2. Create a product linked to the category created before.
3. Create a purchase order and adds a product line with quantity 1 and
price 10.
4. Confirms the purchase order and validates the incoming picking.
5. Creates an invoice from the purchase order.
6. Changes the invoice line price to 12 and confirm the invoice.
7. 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 <https://github.com/OCA/account-invoicing/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 <https://github.com/OCA/account-invoicing/issues/new?body=module:%20stock_account_move_reset_to_draft%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
-------
* Tecnativa
Contributors
------------
- `Tecnativa <https://www.tecnativa.com>`__:
- Víctor Martínez
- Pedro M. Baeza
Maintainers
-----------
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
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.
.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px
:target: https://github.com/victoralmau
:alt: victoralmau
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-victoralmau|
This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/17.0/stock_account_move_reset_to_draft>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Raw data
{
"_id": null,
"home_page": "https://github.com/OCA/account-invoicing",
"name": "odoo-addon-stock-account-move-reset-to-draft",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "Tecnativa, Odoo Community Association (OCA)",
"author_email": "support@odoo-community.org",
"download_url": null,
"platform": null,
"description": ".. image:: https://odoo-community.org/readme-banner-image\n :target: https://odoo-community.org/get-involved?utm_source=readme\n :alt: Odoo Community Association\n\n=================================\nStock account move reset to draft\n=================================\n\n.. \n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! source digest: sha256:b914e88278181761aa51b12cb9d739d0a832bc583a7a6c71ae440bbb8830cb85\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n :target: https://odoo-community.org/page/development-status\n :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github\n :target: https://github.com/OCA/account-invoicing/tree/17.0/stock_account_move_reset_to_draft\n :alt: OCA/account-invoicing\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-stock_account_move_reset_to_draft\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n :target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=17.0\n :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module allows a vendor bill to be reverted to draft status even\nwhen an SVL (Stock Valuation Layer) record is created due to a price\ndifference between the receipt and the vendor bill, when inventory from\nthe receipt has yet to be consumed. When a vendor bill is reset to\ndraft, as applicable, a new SVL record is generated to offset the\nvaluation difference that was generated upon the bill's confirmation.\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUse Cases / Context\n===================\n\nTypically, when a purchase invoice is created at a price different from\nthe price at which the SVLs of the incoming picking were initially\ncreated and confirmed, SVLs are generated to account for the price\ndifference. Once this happens, the invoice cannot normally be reverted\nto draft due to stock_account restrictions.\n\nImagine international business settings where exchange rates are updated\ndaily; this limitation can be problematic. For example, if goods are\nreceived on April 17th and the vendor bill is processed on April 18th\nwith a different exchange rate, an SVL record is generated, locking the\nvendor bill. If a user then realizes a mistake, such as processing the\nbill for the incorrect purchase order, they are unable to cancel it.\n\nUsage\n=====\n\n1. Create a product category with Costing Method: Average Cost (AVCO) or\n First In First Out (FIFO).\n2. Create a product linked to the category created before.\n3. Create a purchase order and adds a product line with quantity 1 and\n price 10.\n4. Confirms the purchase order and validates the incoming picking.\n5. Creates an invoice from the purchase order.\n6. Changes the invoice line price to 12 and confirm the invoice.\n7. It is possible to reset the invoice to draft (a new SVL record to\n offset the existing SVL difference will be created).\n\nWhen attempting to reset an invoice to draft for a product that has been\npartially or fully consumed, the system will display the following error\nmessage: \"The inventory has already been (partially) consumed.\" In that\ncase, consider using landed costs to adjust the valuation of the product\nas necessary.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20stock_account_move_reset_to_draft%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n-------\n\n* Tecnativa\n\nContributors\n------------\n\n- `Tecnativa <https://www.tecnativa.com>`__:\n\n - V\u00edctor Mart\u00ednez\n - Pedro M. Baeza\n\nMaintainers\n-----------\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px\n :target: https://github.com/victoralmau\n :alt: victoralmau\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-victoralmau| \n\nThis module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/17.0/stock_account_move_reset_to_draft>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n",
"bugtrack_url": null,
"license": "AGPL-3",
"summary": "Stock account move reset to draft",
"version": "17.0.1.0.0.2",
"project_urls": {
"Homepage": "https://github.com/OCA/account-invoicing"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "50d26eea06dee0bdc8e2db70d9b143c70dd8a78346d6436932e88e8c70dfc71e",
"md5": "ea8084e3d16abeacc49154d5b76741f7",
"sha256": "b23ecce441b2aef21de2405fa524aa9b3370d9f714b1f66327bde383c1288d42"
},
"downloads": -1,
"filename": "odoo_addon_stock_account_move_reset_to_draft-17.0.1.0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ea8084e3d16abeacc49154d5b76741f7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 29856,
"upload_time": "2025-06-03T15:58:36",
"upload_time_iso_8601": "2025-06-03T15:58:36.353323Z",
"url": "https://files.pythonhosted.org/packages/50/d2/6eea06dee0bdc8e2db70d9b143c70dd8a78346d6436932e88e8c70dfc71e/odoo_addon_stock_account_move_reset_to_draft-17.0.1.0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-06-03 15:58:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OCA",
"github_project": "account-invoicing",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "openupgradelib",
"specs": []
}
],
"lcname": "odoo-addon-stock-account-move-reset-to-draft"
}