diff --git a/stock_account_valuation_discrepancy_adjust/README.rst b/stock_account_valuation_discrepancy_adjust/README.rst index 55dc1bfef..5e4d85b4f 100644 --- a/stock_account_valuation_discrepancy_adjust/README.rst +++ b/stock_account_valuation_discrepancy_adjust/README.rst @@ -7,7 +7,7 @@ Account Valuation Discrepancy Adjust !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ddb15357af94cb938fe1e041085a9d72012c59eb4463feadc92e6af028789b2b + !! source digest: sha256:dd2d6fb4bffb4420e86213ebd3c3d2887293fb56a54b1f64dc428cde4ba31092 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png @@ -32,7 +32,9 @@ Wizard to show discrepancies between stock and accounting valuation, and possibi You should use this module if you have products where the inventory valuation is automated (this means that your inventory is connected with accounting). The report allows you to identify the products where the inventory value has a discrepancy with the accounting value for that same product, and to make an adjustment entry in your accounting to align the two values. -In order to use the module, go to Inventory / Reporting / Products with Account Discrepancy, select the date where you are looking to find the discrepancy and run "Show report". Once run, select the entries that you want to adjust and run the action to adjust. +This module adds an action the report in *Inventory / Reporting / Dual Inventory Valuation*. The action is accesible for Account Managers. + +The action allows to create accounting entries by product in order to match the accounting value to the stock value. .. IMPORTANT:: This is an alpha version, the data model and design can change at any time without warning. @@ -66,6 +68,7 @@ Contributors ~~~~~~~~~~~~ * Christopher Ormaza +* Aaron Henriquez Maintainers ~~~~~~~~~~~ diff --git a/stock_account_valuation_discrepancy_adjust/__init__.py b/stock_account_valuation_discrepancy_adjust/__init__.py index 3e6a9f76d..283b87bc0 100644 --- a/stock_account_valuation_discrepancy_adjust/__init__.py +++ b/stock_account_valuation_discrepancy_adjust/__init__.py @@ -1,5 +1,4 @@ # Copyright 2021 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from . import models from . import wizards diff --git a/stock_account_valuation_discrepancy_adjust/__manifest__.py b/stock_account_valuation_discrepancy_adjust/__manifest__.py index 235f6da5e..20d04300a 100644 --- a/stock_account_valuation_discrepancy_adjust/__manifest__.py +++ b/stock_account_valuation_discrepancy_adjust/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Account Valuation Discrepancy Adjust", - "version": "12.0.1.0.0", + "version": "16.0.1.0.0", "summary": "Implements Wizard for Adjust " "Discrepancies on Account Inventory Valuation", "category": "Warehouse Management", @@ -13,9 +13,7 @@ "depends": ["stock_account_valuation_report"], "data": [ "security/ir.model.access.csv", - "wizards/wizard_stock_discrepancy_report_view.xml", "wizards/wizard_stock_discrepancy_adjustment_view.xml", - "views/product_discrepancy_view.xml", ], "demo": [], "installable": True, diff --git a/stock_account_valuation_discrepancy_adjust/models/__init__.py b/stock_account_valuation_discrepancy_adjust/models/__init__.py deleted file mode 100644 index 7eeb9d750..000000000 --- a/stock_account_valuation_discrepancy_adjust/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2021 ForgeFlow S.L. -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from . import product_discrepancy diff --git a/stock_account_valuation_discrepancy_adjust/models/product_discrepancy.py b/stock_account_valuation_discrepancy_adjust/models/product_discrepancy.py deleted file mode 100644 index dddbca4fc..000000000 --- a/stock_account_valuation_discrepancy_adjust/models/product_discrepancy.py +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 ForgeFlow S.L. -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo import fields, models - - -class ProductDiscrepancy(models.TransientModel): - - _name = "product.discrepancy" - _description = "Product Discrepancies" - - product_id = fields.Many2one( - comodel_name="product.product", - string="Product", - required=True, - readonly=True, - ) - categ_id = fields.Many2one( - comodel_name="product.category", - string="Category", - required=True, - readonly=True, - ) - stock_value = fields.Float(string="Inventory Value", readonly=True) - account_value = fields.Float(string="Accounting Value", readonly=True) - qty_at_date = fields.Float(string="Inventory Quantity", readonly=True) - account_qty_at_date = fields.Float(string="Accounting Quantity", readonly=True) - valuation_discrepancy = fields.Float(string="Valuation discrepancy", readonly=True) - qty_discrepancy = fields.Float(string="Quantity discrepancy", readonly=True) - - to_date_valuation = fields.Datetime(string="To Date Valuation", readonly=True) diff --git a/stock_account_valuation_discrepancy_adjust/readme/CONTRIBUTORS.rst b/stock_account_valuation_discrepancy_adjust/readme/CONTRIBUTORS.rst index b647a292e..dabecf981 100644 --- a/stock_account_valuation_discrepancy_adjust/readme/CONTRIBUTORS.rst +++ b/stock_account_valuation_discrepancy_adjust/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Christopher Ormaza +* Aaron Henriquez diff --git a/stock_account_valuation_discrepancy_adjust/readme/DESCRIPTION.rst b/stock_account_valuation_discrepancy_adjust/readme/DESCRIPTION.rst index d4245f685..4849ddc6c 100644 --- a/stock_account_valuation_discrepancy_adjust/readme/DESCRIPTION.rst +++ b/stock_account_valuation_discrepancy_adjust/readme/DESCRIPTION.rst @@ -2,4 +2,6 @@ Wizard to show discrepancies between stock and accounting valuation, and possibi You should use this module if you have products where the inventory valuation is automated (this means that your inventory is connected with accounting). The report allows you to identify the products where the inventory value has a discrepancy with the accounting value for that same product, and to make an adjustment entry in your accounting to align the two values. -In order to use the module, go to Inventory / Reporting / Products with Account Discrepancy, select the date where you are looking to find the discrepancy and run "Show report". Once run, select the entries that you want to adjust and run the action to adjust. +This module adds an action the report in *Inventory / Reporting / Dual Inventory Valuation*. The action is accesible for Account Managers. + +The action allows to create accounting entries by product in order to match the accounting value to the stock value. diff --git a/stock_account_valuation_discrepancy_adjust/security/ir.model.access.csv b/stock_account_valuation_discrepancy_adjust/security/ir.model.access.csv index de2c88c7b..178682de7 100644 --- a/stock_account_valuation_discrepancy_adjust/security/ir.model.access.csv +++ b/stock_account_valuation_discrepancy_adjust/security/ir.model.access.csv @@ -1,4 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_product_discrepancy,access_product_discrepancy,model_product_discrepancy,,1,1,1,0 -access_wizard_stock_discrepancy_adjustment,access_wizard_stock_discrepancy_adjustment,model_wizard_stock_discrepancy_adjustment,,1,1,1,1 -access_wizard_stock_discrepancy_report,access_wizard_stock_discrepancy_report,model_wizard_stock_discrepancy_adjustment,,1,1,1,1 +access_wizard_stock_discrepancy_adjustment,access_wizard_stock_discrepancy_adjustment,model_wizard_stock_discrepancy_adjustment,account.group_account_manager,1,1,1,1 +access_wizard_stock_discrepancy_adjustment_line,access_wizard_stock_discrepancy_adjustment_line,model_wizard_stock_discrepancy_adjustment_line,account.group_account_manager,1,1,1,1 diff --git a/stock_account_valuation_discrepancy_adjust/static/description/index.html b/stock_account_valuation_discrepancy_adjust/static/description/index.html index 4397f7100..676580b15 100644 --- a/stock_account_valuation_discrepancy_adjust/static/description/index.html +++ b/stock_account_valuation_discrepancy_adjust/static/description/index.html @@ -1,20 +1,20 @@ + - + Account Valuation Discrepancy Adjust