diff --git a/setup/stock_valuation_layer_inventory_filter/odoo/addons/stock_valuation_layer_inventory_filter b/setup/stock_valuation_layer_inventory_filter/odoo/addons/stock_valuation_layer_inventory_filter new file mode 120000 index 000000000..5fcff50dd --- /dev/null +++ b/setup/stock_valuation_layer_inventory_filter/odoo/addons/stock_valuation_layer_inventory_filter @@ -0,0 +1 @@ +../../../../stock_valuation_layer_inventory_filter \ No newline at end of file diff --git a/setup/stock_valuation_layer_inventory_filter/setup.py b/setup/stock_valuation_layer_inventory_filter/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_valuation_layer_inventory_filter/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_valuation_layer_inventory_filter/README.rst b/stock_valuation_layer_inventory_filter/README.rst new file mode 100644 index 000000000..8ebdfa7f5 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/README.rst @@ -0,0 +1,112 @@ +====================================== +Stock Valuation Layer Inventory Filter +====================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7484521dc2e2d98bad90e83f086726f551d88a8631b9900ba865de845504d994 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_valuation_layer_inventory_filter + :alt: OCA/stock-logistics-warehouse +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_valuation_layer_inventory_filter + :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/stock-logistics-warehouse&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the Stock Valuation functionality to support +grouping by Reference, filtering by Inventory Adjustments moves and +filtering by Creation Date and allow you to obtain a more detailed +Inventory Valuation. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +This module has been developed because when making inventory adjustments +with description, they cannot be filtered in the Inventory Valuation. + +This will be useful if you want to check the difference in Total Value +for each inventory adjustment. + +Usage +===== + +To use this module, you need to: + +1. Go to Inventory > Operations > Inventory Adjustments +2. Adjust multiple lines, select them and click "Apply" +3. Fill in the description of the Inventory Adjustment you are making +4. Go to Inventory > Reporting > Valuation +5. Filter by Inventory and group by Reference + +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 +======= + +Authors +------- + +* Moduon + +Contributors +------------ + +- Eduardo de Miguel (`Moduon `__) + +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-Shide| image:: https://github.com/Shide.png?size=40px + :target: https://github.com/Shide + :alt: Shide + +Current `maintainer `__: + +|maintainer-Shide| + +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_valuation_layer_inventory_filter/__init__.py b/stock_valuation_layer_inventory_filter/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_valuation_layer_inventory_filter/__manifest__.py b/stock_valuation_layer_inventory_filter/__manifest__.py new file mode 100644 index 000000000..c65c765bd --- /dev/null +++ b/stock_valuation_layer_inventory_filter/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2024 Moduon Team S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) + +{ + "name": "Stock Valuation Layer Inventory Filter", + "summary": "Allows to filter Inventory Adjustments on Stock Valuation Layers", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Inventory/Inventory", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "author": "Moduon, Odoo Community Association (OCA)", + "maintainers": ["Shide"], + "license": "LGPL-3", + "application": False, + "installable": True, + "depends": [ + "stock_account", + ], + "data": [ + "views/stock_valuation_layer_view.xml", + ], +} diff --git a/stock_valuation_layer_inventory_filter/i18n/es.po b/stock_valuation_layer_inventory_filter/i18n/es.po new file mode 100644 index 000000000..011002672 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/i18n/es.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_valuation_layer_inventory_filter +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-10 09:42+0000\n" +"PO-Revision-Date: 2024-07-10 11:43+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.4.4\n" + +#. module: stock_valuation_layer_inventory_filter +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Date" +msgstr "Fecha" + +#. module: stock_valuation_layer_inventory_filter +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Inventory" +msgstr "Inventario" + +#. module: stock_valuation_layer_inventory_filter +#: model:ir.model.fields,field_description:stock_valuation_layer_inventory_filter.field_stock_valuation_layer__reference +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Reference" +msgstr "Referencia" + +#. module: stock_valuation_layer_inventory_filter +#: model:ir.model,name:stock_valuation_layer_inventory_filter.model_stock_valuation_layer +msgid "Stock Valuation Layer" +msgstr "Capa de valoración de stock" diff --git a/stock_valuation_layer_inventory_filter/i18n/stock_valuation_layer_inventory_filter.pot b/stock_valuation_layer_inventory_filter/i18n/stock_valuation_layer_inventory_filter.pot new file mode 100644 index 000000000..02d2b9143 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/i18n/stock_valuation_layer_inventory_filter.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_valuation_layer_inventory_filter +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-10 09:42+0000\n" +"PO-Revision-Date: 2024-07-10 09:42+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_valuation_layer_inventory_filter +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Date" +msgstr "" + +#. module: stock_valuation_layer_inventory_filter +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Inventory" +msgstr "" + +#. module: stock_valuation_layer_inventory_filter +#: model:ir.model.fields,field_description:stock_valuation_layer_inventory_filter.field_stock_valuation_layer__reference +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_inventory_filter.view_inventory_valuation_search +msgid "Reference" +msgstr "" + +#. module: stock_valuation_layer_inventory_filter +#: model:ir.model,name:stock_valuation_layer_inventory_filter.model_stock_valuation_layer +msgid "Stock Valuation Layer" +msgstr "" diff --git a/stock_valuation_layer_inventory_filter/models/__init__.py b/stock_valuation_layer_inventory_filter/models/__init__.py new file mode 100644 index 000000000..f75b2df31 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/models/__init__.py @@ -0,0 +1 @@ +from . import stock_valuation_layer diff --git a/stock_valuation_layer_inventory_filter/models/stock_valuation_layer.py b/stock_valuation_layer_inventory_filter/models/stock_valuation_layer.py new file mode 100644 index 000000000..473c58427 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/models/stock_valuation_layer.py @@ -0,0 +1,10 @@ +# Copyright 2024 Moduon Team S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) + +from odoo import fields, models + + +class StockValuationLayer(models.Model): + _inherit = "stock.valuation.layer" + + reference = fields.Char(store=True, readonly=True) diff --git a/stock_valuation_layer_inventory_filter/readme/CONTEXT.md b/stock_valuation_layer_inventory_filter/readme/CONTEXT.md new file mode 100644 index 000000000..b75e2ebca --- /dev/null +++ b/stock_valuation_layer_inventory_filter/readme/CONTEXT.md @@ -0,0 +1,4 @@ +This module has been developed because when making inventory adjustments with +description, they cannot be filtered in the Inventory Valuation. + +This will be useful if you want to check the difference in Total Value for each inventory adjustment. diff --git a/stock_valuation_layer_inventory_filter/readme/CONTRIBUTORS.md b/stock_valuation_layer_inventory_filter/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..290347f42 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Eduardo de Miguel ([Moduon](https://www.moduon.team/)) diff --git a/stock_valuation_layer_inventory_filter/readme/DESCRIPTION.md b/stock_valuation_layer_inventory_filter/readme/DESCRIPTION.md new file mode 100644 index 000000000..f8c03d774 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module extends the Stock Valuation functionality to support grouping +by Reference, filtering by Inventory Adjustments moves and filtering by +Creation Date and allow you to obtain a more detailed Inventory Valuation. \ No newline at end of file diff --git a/stock_valuation_layer_inventory_filter/readme/USAGE.md b/stock_valuation_layer_inventory_filter/readme/USAGE.md new file mode 100644 index 000000000..8a247acef --- /dev/null +++ b/stock_valuation_layer_inventory_filter/readme/USAGE.md @@ -0,0 +1,7 @@ +To use this module, you need to: + +1. Go to Inventory > Operations > Inventory Adjustments +2. Adjust multiple lines, select them and click "Apply" +3. Fill in the description of the Inventory Adjustment you are making +4. Go to Inventory > Reporting > Valuation +5. Filter by Inventory and group by Reference diff --git a/stock_valuation_layer_inventory_filter/static/description/icon.png b/stock_valuation_layer_inventory_filter/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_valuation_layer_inventory_filter/static/description/icon.png differ diff --git a/stock_valuation_layer_inventory_filter/static/description/index.html b/stock_valuation_layer_inventory_filter/static/description/index.html new file mode 100644 index 000000000..62dc6828c --- /dev/null +++ b/stock_valuation_layer_inventory_filter/static/description/index.html @@ -0,0 +1,454 @@ + + + + + +Stock Valuation Layer Inventory Filter + + + +
+

Stock Valuation Layer Inventory Filter

+ + +

Alpha License: LGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

This module extends the Stock Valuation functionality to support +grouping by Reference, filtering by Inventory Adjustments moves and +filtering by Creation Date and allow you to obtain a more detailed +Inventory Valuation.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Use Cases / Context

+

This module has been developed because when making inventory adjustments +with description, they cannot be filtered in the Inventory Valuation.

+

This will be useful if you want to check the difference in Total Value +for each inventory adjustment.

+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Inventory > Operations > Inventory Adjustments
  2. +
  3. Adjust multiple lines, select them and click “Apply”
  4. +
  5. Fill in the description of the Inventory Adjustment you are making
  6. +
  7. Go to Inventory > Reporting > Valuation
  8. +
  9. Filter by Inventory and group by Reference
  10. +
+
+
+

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

+
+

Authors

+
    +
  • Moduon
  • +
+
+
+

Contributors

+
    +
  • Eduardo de Miguel (Moduon)
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +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:

+

Shide

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/stock_valuation_layer_inventory_filter/views/stock_valuation_layer_view.xml b/stock_valuation_layer_inventory_filter/views/stock_valuation_layer_view.xml new file mode 100644 index 000000000..b346961d1 --- /dev/null +++ b/stock_valuation_layer_inventory_filter/views/stock_valuation_layer_view.xml @@ -0,0 +1,39 @@ + + + + + stock.valuation.layer + + + + + + + + + + + + + + + + + + +