diff --git a/stock_account_move_reset_to_draft/README.rst b/stock_account_move_reset_to_draft/README.rst index 640c9703367f..b278907b43f5 100644 --- a/stock_account_move_reset_to_draft/README.rst +++ b/stock_account_move_reset_to_draft/README.rst @@ -17,21 +17,23 @@ Stock account move reset to draft :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/16.0/stock_account_move_reset_to_draft + :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-16-0/account-invoicing-16-0-stock_account_move_reset_to_draft + :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=16.0 + :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. +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** @@ -41,32 +43,38 @@ When a vendor bill is reset to draft, as applicable, a new SVL record is generat 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. +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. +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. +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 =========== @@ -74,7 +82,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,20 +90,20 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_: +- `Tecnativa `__: - * Víctor Martínez - * Pedro M. Baeza + - Víctor Martínez + - Pedro M. Baeza Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -115,6 +123,6 @@ Current `maintainer `__: |maintainer-victoralmau| -This module is part of the `OCA/account-invoicing `_ project on GitHub. +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. diff --git a/stock_account_move_reset_to_draft/pyproject.toml b/stock_account_move_reset_to_draft/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/stock_account_move_reset_to_draft/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_account_move_reset_to_draft/readme/CONTEXT.md b/stock_account_move_reset_to_draft/readme/CONTEXT.md new file mode 100644 index 000000000000..f97a1d7e42ec --- /dev/null +++ b/stock_account_move_reset_to_draft/readme/CONTEXT.md @@ -0,0 +1,12 @@ +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. diff --git a/stock_account_move_reset_to_draft/readme/CONTEXT.rst b/stock_account_move_reset_to_draft/readme/CONTEXT.rst deleted file mode 100644 index 35733ac1b290..000000000000 --- a/stock_account_move_reset_to_draft/readme/CONTEXT.rst +++ /dev/null @@ -1,11 +0,0 @@ -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. \ No newline at end of file diff --git a/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.md b/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..5fee3904270d --- /dev/null +++ b/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com): + - Víctor Martínez + - Pedro M. Baeza diff --git a/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.rst b/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.rst deleted file mode 100644 index 5fb713053086..000000000000 --- a/stock_account_move_reset_to_draft/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Tecnativa `_: - - * Víctor Martínez - * Pedro M. Baeza diff --git a/stock_account_move_reset_to_draft/readme/DESCRIPTION.md b/stock_account_move_reset_to_draft/readme/DESCRIPTION.md new file mode 100644 index 000000000000..854eb419be7f --- /dev/null +++ b/stock_account_move_reset_to_draft/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +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. diff --git a/stock_account_move_reset_to_draft/readme/DESCRIPTION.rst b/stock_account_move_reset_to_draft/readme/DESCRIPTION.rst deleted file mode 100644 index 5140e2efc91c..000000000000 --- a/stock_account_move_reset_to_draft/readme/DESCRIPTION.rst +++ /dev/null @@ -1,4 +0,0 @@ -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. diff --git a/stock_account_move_reset_to_draft/readme/USAGE.md b/stock_account_move_reset_to_draft/readme/USAGE.md new file mode 100644 index 000000000000..e39699bf881f --- /dev/null +++ b/stock_account_move_reset_to_draft/readme/USAGE.md @@ -0,0 +1,16 @@ +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. diff --git a/stock_account_move_reset_to_draft/readme/USAGE.rst b/stock_account_move_reset_to_draft/readme/USAGE.rst deleted file mode 100644 index 73cf8cccea75..000000000000 --- a/stock_account_move_reset_to_draft/readme/USAGE.rst +++ /dev/null @@ -1,11 +0,0 @@ -#. 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. diff --git a/stock_account_move_reset_to_draft/static/description/index.html b/stock_account_move_reset_to_draft/static/description/index.html index 17ee5c0eb7ed..145b0b1cf422 100644 --- a/stock_account_move_reset_to_draft/static/description/index.html +++ b/stock_account_move_reset_to_draft/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { @@ -369,11 +368,13 @@

Stock account move reset to draft

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:906ac39377d605e253d0470fffc49aff72a82685b43306c243c46d1735ba3e1c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

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.

+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

    @@ -390,38 +391,44 @@

    Stock account move reset to draft

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.

+

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. +
  3. Create a product category with Costing Method: Average Cost (AVCO) or +First In First Out (FIFO).
  4. Create a product linked to the category created before.
  5. -
  6. Create a purchase order and adds a product line with quantity 1 and price 10.
  7. +
  8. Create a purchase order and adds a product line with quantity 1 and +price 10.
  9. Confirms the purchase order and validates the incoming picking.
  10. Creates an invoice from the purchase order.
  11. Changes the invoice line price to 12 and confirm the invoice.
  12. -
  13. It is possible to reset the invoice to draft (a new SVL record to offset the existing SVL difference will be created).
  14. +
  15. 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.

+

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -445,15 +452,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +Odoo Community Association

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:

victoralmau

-

This module is part of the OCA/account-invoicing project on GitHub.

+

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.