Skip to content

Commit

Permalink
Merge PR #894 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Jun 24, 2020
2 parents db29b0d + 50f3dde commit fe00950
Show file tree
Hide file tree
Showing 106 changed files with 45,683 additions and 0 deletions.
180 changes: 180 additions & 0 deletions stock_inventory_revaluation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
===========================
Stock Inventory Revaluation
===========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/licence-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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0-mig-stock_inventory_revaluation/stock_inventory_revaluation
: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-12-0-mig-stock_inventory_revaluation/stock-logistics-warehouse-12-0-mig-stock_inventory_revaluation-stock_inventory_revaluation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/12.0-mig-stock_inventory_revaluation
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

If your company runs a perpetual inventory system, you may need to perform
inventory revaluation. A revaluation updates both the inventory
account balance, and the stock value of products.

This module takes three different methods of stock revaluation

- Stock-Move-Specific Valuation (FIFO costing)
- Simple Price Change (standard/average costing)
- Inventory-Total-Value Price Change (standard/average costing)


Stock-Move-Specific Valuation
=============================

Stock-Move-Specific valuation applies if the product is configured for FIFO
costing. In this case, the user selects specific stock moves for which to
change value. A journal entry is created for each stock move on which the
value is changed.


Simple Price Change
===================

A simple price change updates the standard/average cost of the product,
regardless of the available stock. The user specifies a new per-unit price,
and posts the change. A journal entry is created for all stock moves having
positive remaining stock value. The amount of the posted entry is the
difference between the new and old price, multiplied by the quantity available.


Inventory-Total-Value Price Change
==================================

This is a price change, based on total available stock value. It updates the
standard/average cost of the product, based on available stock. The user
specifies a new total value for available stock. The standard/average price
of the product is updated to the new total value divided by the available
quantity. A journal entry is created for all stock moves having positive
remaining stock value. The amount of the posted entry is the difference
between the new and old total value.

**Table of contents**

.. contents::
:local:

Configuration
=============

* Users wanting to access to the Inventory Revaluation menu should be
members of the group "Manage Inventory Valuation and Costing Methods".

* The Revaluation can automatically select contra-accounts to the Stock
Valuation Account. To configure this, define a Valuation Increase Account
and a Valuation Decrease Account for each product category. Do that here:
*Inventory / Configuration / Products / Product Categories*

Usage
=====

- Go to *Inventory / Inventory Control / Inventory Revaluation* to create a
new Inventory Revaluation.
- For products set with average/standard price, and automated valuation, go
to the Product form and use the "Update Cost" link to change the standard
price.
- In order to post the inventory revaluation for multiple items at once,
select the records in the tree view and go to
*Action / Post Inventory Revaluations*.
- To set default valuation increase/decrease accounts by product category, go
to *Inventory / Configuration / Product Categories*

Known issues / Roadmap
======================

- Known Issue: We can't revalue individual lots/serials if there are multiple
on the same stock move

- Version 11 moved the cost from stock.quant to stock.move. That
means there is no longer an individual cost assigned to specific
lots/serials.
- As a work around, you can internally transfer the lot/serial you want to
revalue. This will separate it from the other lots/serials on the
original inbound stock move.

- Known Issue: Actual resulting stock value may differ slightly from that
specified by the user. This can result when the Product Price
decimal precision is low, and there is a large quantity of product to
revaluate. For example:

- If we have 147 units on hand, and the precision for Product Price is 2
digits
- When we specify a new value of 750, the actual value applied is 749.70
- At full precision, 750 / 147 = 5.102041, but the product cost gets
rounded to 5.10, and 5.10 * 147 = 749.70
- As a work around, you can change the decimal precision setting for Product
Price to have a greater number of digits

Changelog
=========

12.0.1.0.0 (2020-04-27)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migrated to v12
* [FIX] Let the user set a posting date other than today
(`#892 <https://github.com/OCA/stock-logistics-warehouse/issues/892>`_)
* [IMP] Operate on stock moves, rather than stock quants
* [IMP] Select stock moves by Lot and Location
* [IMP] Let the user remove move lines from the revaluation, in draft state

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_revaluation%0Aversion:%2012.0-mig-stock_inventory_revaluation%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
~~~~~~~

* Eficent Business and IT Consulting Services S.L.
* Serpent Consulting Services Pvt. Ltd.
* Matt Taylor

Contributors
~~~~~~~~~~~~

* Eficent Business and IT Consulting Services S.L. <contact@eficent.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Matt Taylor <matt454357@gmail.com> (https://github.com/matt454357)

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.

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0-mig-stock_inventory_revaluation/stock_inventory_revaluation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions stock_inventory_revaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
34 changes: 34 additions & 0 deletions stock_inventory_revaluation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2020 Matt Taylor
# Copyright 2016-17 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2016 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Stock Inventory Revaluation",
"summary": "Introduces inventory revaluation as single point to change "
"the valuation of products.",
"version": "12.0.1.0.0",
"development_status": "Production/Stable",
"author": "Eficent Business and IT Consulting Services S.L., "
"Serpent Consulting Services Pvt. Ltd., "
"Matt Taylor, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
"depends": ["stock_account", "product"],
"license": "AGPL-3",
"data": [
"wizards/stock_inventory_revaluation_get_moves_view.xml",
"security/stock_inventory_revaluation_security.xml",
"security/ir.model.access.csv",
"views/stock_inventory_revaluation_view.xml",
"views/stock_inventory_revaluation_template_view.xml",
"views/product_view.xml",
"views/account_move_line_view.xml",
"data/stock_inventory_revaluation_data.xml",
"wizards/stock_inventory_revaluation_mass_post_view.xml",
],
'installable': True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">

<record id="sequence_stock_inventory_revaluation" model="ir.sequence">
<field name="name">Stock Inventory Revaluation</field>
<field name="code">stock.inventory.revaluation</field>
<field name="prefix">IR/</field>
<field name="padding">7</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>

</data>
</odoo>

0 comments on commit fe00950

Please sign in to comment.