Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG][FIX] stock_cycle_count #1895

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
6989d60
[ADD] stock_cycle_count
LoisRForgeFlow Feb 17, 2017
924997b
[ADD] Adding tests
MiquelRForgeFlow Mar 2, 2017
9f2096d
[IMP] stock_cycle_count:
LoisRForgeFlow Mar 9, 2017
670aa78
[IMP] tests.
LoisRForgeFlow Mar 13, 2017
61781ac
[9.0][FIX] Solves issue when doing picking with several moves.
LoisRForgeFlow Apr 21, 2017
c1531f9
OCA Transbot updated translations from Transifex
oca-transbot May 13, 2017
7046b00
[9.0][IMP] stock_cycle_count: add the possibility to define rules for…
LoisRForgeFlow May 4, 2017
48e0af2
[9.0][FIX] stock_cycle_count: Do not propose cycle counts in the past.
LoisRForgeFlow May 10, 2017
ce7d4e3
[9.0][FIX] stock_cycle_count: Fix a bug when combining automatic and …
LoisRForgeFlow May 10, 2017
edb6208
[9.0][FIX] stock_cycle_count: fields only editable in draft and add t…
LoisRForgeFlow May 10, 2017
7321fc7
[9.0][IMP] stock_cycle_count: Enhance tree view with filter and colors.
LoisRForgeFlow May 11, 2017
f258ad7
[9.0][IMP] stock_cycle_count: The configuration of an inventory adjus…
LoisRForgeFlow May 11, 2017
3f6ccf4
[9.0][IMP] stock_cycle_count: update existing cycle counts instead of…
LoisRForgeFlow May 12, 2017
1704b94
[9.0][IMP] stock_cycle_count: add server action to confirm several CC…
LoisRForgeFlow May 17, 2017
d7a01c8
OCA Transbot updated translations from Transifex
oca-transbot Jun 10, 2017
2c9e99f
[FIX] stock_cycle_count (usage cannot be 'view')
MiquelRForgeFlow Jul 19, 2017
6351416
OCA Transbot updated translations from Transifex
oca-transbot Jul 29, 2017
3584445
[9.0][IMP] stock_cycle_count: fix accuracy computation and store it
LoisRForgeFlow Oct 9, 2017
1dec303
[9.0][IMP] stock_cycle_count: basic_accuracy report
LoisRForgeFlow Oct 10, 2017
3c7b213
[9.0][IMP] stock_cycle_count: enhance views
LoisRForgeFlow Oct 10, 2017
c2a0706
[9.0][IMP] stock_cycle_count: cycle counts report
LoisRForgeFlow Nov 15, 2017
756446a
OCA Transbot updated translations from Transifex
oca-transbot Nov 18, 2017
3ee4588
[10.0][MIG] stock_cycle_count
LoisRForgeFlow Aug 24, 2017
625e5f5
cycle_count: fix cycle count state issue
LoisRForgeFlow Sep 8, 2017
0d7c326
[10.0][IMP] fix api issues and clean up code
LoisRForgeFlow Jan 3, 2018
c7eb574
[10.0] stock_cycle_count: adapt to follow OCA convention.
LoisRForgeFlow Mar 23, 2018
59c5789
[10.0][IMP] stock_cycle_count:
LoisRForgeFlow Mar 23, 2018
a4938d5
[10.0][UPD] stock_cycle_count: add roadmap.
LoisRForgeFlow Mar 27, 2018
c47e653
[UPD] Update stock_cycle_count.pot
oca-travis Jun 18, 2018
e293ae4
[11.0][MIG] stock_cycle_count
LoisRForgeFlow Sep 19, 2018
6e099df
stock_cycle_count: fix issue with nan while doing the mean calculation
JordiBForgeFlow Oct 17, 2018
d8cd632
[UPD] README.rst
OCA-git-bot Oct 31, 2018
3d9157c
[UPD] Update stock_cycle_count.pot
oca-travis Oct 31, 2018
2c00a67
Update translation files
oca-transbot Dec 9, 2018
6688b3e
[FIX] stock_cycle_count: Don't lose return value
pedrobaeza Feb 1, 2019
03d8bb8
[12.0][MIG] stock_cycle_count: Migration to 12.0
Jun 24, 2019
0e4546d
[12.0][FIX/MIG] stock_cycle_count: fix zero confirmation rules.
LoisRForgeFlow Jul 8, 2019
1f0fc39
[UPD] Update stock_cycle_count.pot
oca-travis Jul 8, 2019
6447293
[UPD] README.rst
OCA-git-bot Jul 8, 2019
e3ba7dd
Update translation files
oca-transbot Jul 20, 2019
bd57eee
[UPD] README.rst
OCA-git-bot Jul 29, 2019
1c6d88f
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 26, 2019
bbacf79
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 28, 2019
8b9abc3
[IMP] stock_cycle_count: Create test user without password to pass te…
sergio-teruel Nov 14, 2019
3d12817
[IMP] stock_cycle_count: black, isort
jimhoefnagels Feb 5, 2020
6534912
[MIG] stock_cycle_count: Migration to 13.0
jimhoefnagels Feb 5, 2020
e6f818a
[UPD] Update stock_cycle_count.pot
oca-travis Jun 3, 2020
ce9fc13
[UPD] README.rst
OCA-git-bot Jun 3, 2020
a1603b8
stock_cycle_count 13.0.1.0.1
OCA-git-bot Jun 3, 2020
39b8516
Update translation files
oca-transbot Jun 8, 2020
b3240b7
Update translation files
oca-transbot Aug 16, 2020
223c0ff
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
09aa54e
[UPD] README.rst
OCA-git-bot Oct 1, 2020
c1a365a
[IMP] stock_cycle_count: auto link inventories to planned cycle counts
LoisRForgeFlow May 26, 2021
06380d4
[UPD] Update stock_cycle_count.pot
oca-travis Jun 9, 2021
3c17b68
stock_cycle_count 13.0.1.1.0
OCA-git-bot Jun 9, 2021
f480ac6
[UPD] Update stock_cycle_count.pot
oca-travis Jun 9, 2021
f875e46
[14.0][MIG] stock_cycle_count: black, isort, prettier
MateuGForgeFlow Sep 9, 2021
e536e60
[14.0][MIG] stock_cycle_count: Migration to 14.0
MateuGForgeFlow Sep 13, 2021
931fc8d
FIX: correct field name, location_ids instead of location_id
celm1990 Jun 24, 2021
99c881e
[UPD] Update stock_cycle_count.pot
oca-travis Oct 19, 2021
353e072
[UPD] README.rst
OCA-git-bot Oct 19, 2021
c8585b2
[FIX] stock_cycle_count: fix deprecation warnings
MateuGForgeFlow Oct 25, 2021
dc7b521
[UPD] Update stock_cycle_count.pot
oca-travis Oct 25, 2021
eacf465
stock_cycle_count 14.0.1.1.1
OCA-git-bot Oct 25, 2021
29c0bed
Update translation files
oca-transbot Oct 25, 2021
6084f9c
[FIX] adapt syntax for act_window lookup
florentx Dec 9, 2021
02f1627
stock_cycle_count 14.0.1.1.2
OCA-git-bot Dec 10, 2021
86dcf68
[14.0][IMP] stock_cycle_count: check modify
MateuGForgeFlow Dec 17, 2021
d509dfe
stock_cycle_count 14.0.1.2.0
OCA-git-bot Dec 17, 2021
25c4ef6
Translated using Weblate (Italian)
mymage Jul 16, 2022
512c6fd
[FIX] Development statuses
rousseldenis Sep 5, 2022
12038dd
[UPD] README.rst
OCA-git-bot Sep 5, 2022
fb69ede
stock_cycle_count 14.0.1.2.1
OCA-git-bot Sep 5, 2022
21fdfaa
Translated using Weblate (Italian)
mymage Oct 26, 2022
8993c19
Translated using Weblate (Italian)
mymage Nov 3, 2022
f93839e
[IMP] stock_cycle_count: Implement constrains in inventory adjustment.
JordiBForgeFlow Nov 4, 2022
858b3fd
[UPD] Update stock_cycle_count.pot
Nov 7, 2022
39730f4
stock_cycle_count 14.0.1.2.2
OCA-git-bot Nov 7, 2022
053e6b1
Update translation files
weblate Nov 7, 2022
4be20a5
[14.0][IMP] stock_cycle_count: add auto start adjustment option
DavidJForgeFlow Nov 7, 2022
8ec210b
[UPD] Update stock_cycle_count.pot
Nov 10, 2022
ae67bea
stock_cycle_count 14.0.1.3.0
OCA-git-bot Nov 10, 2022
9f387ad
Update translation files
weblate Nov 10, 2022
8e3dd1b
[14.0][IMP] stock_cycle_count: inherit to stock.inventory
DavidJForgeFlow Nov 11, 2022
a5f5747
[UPD] Update stock_cycle_count.pot
Nov 11, 2022
345d631
stock_cycle_count 14.0.1.4.0
OCA-git-bot Nov 11, 2022
ecab4c0
Update translation files
weblate Nov 11, 2022
abcdb7b
[15.0][MIG]stock_cycle_count
Chanakya-OSI Dec 8, 2022
18907d4
[IMP] stock_cycle_count: pre-commit stuff
Urvisha-OSI Mar 23, 2023
0427578
[MIG] stock_cycle_count: Migration to 16.0
Urvisha-OSI Mar 23, 2023
cac2527
[FIX] stock_cycle_count: rplaced discrepancy_qty for inventory_diff_q…
ArnauCForgeFlow Nov 24, 2023
d8a06ec
[DON'T MERGE] test_requirements.txt
ArnauCForgeFlow Nov 24, 2023
24ac1c7
[DON'T MERGE] replaced pr dependency test-requirements.txt
ArnauCForgeFlow Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup/stock_cycle_count/odoo/addons/stock_cycle_count
6 changes: 6 additions & 0 deletions setup/stock_cycle_count/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
174 changes: 174 additions & 0 deletions stock_cycle_count/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
=================
Stock Cycle Count
=================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/16.0/stock_cycle_count
: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_cycle_count
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-warehouse&target_branch=16.0
:alt: Try me on Runboat

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

This module provides the capability to execute a cycle count strategy in a
warehouse through different rules defined by the user. Cycle count is an
alternative to full wall-to-wall physical inventories in which little
portions (stock locations) of the stock are selected to count on a regular
basis.

The system propose locations in which to perform a inventory adjustment every
day based on a set of rules defined for the warehouse. In addition the system
can propose Zero-Confirmations which are simple and opportunistic counts to
check whether a locations has actually became empty or not.

With this strategy it is possible to:

* Remove the need to perform full physical inventories and to stop the
production in the warehouse.
* Measure the accuracy of the inventory records and improve it.
* Correct inventory errors earlier and prevent them to become bigger.

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need to:

* Download this module to your addons path.
* Install the module in your database.

Recommendations
~~~~~~~~~~~~~~~

It is highly recommended to use this module in conjunction with:

* ``stock_inventory_verification_request``: Adds the capability to request Slot
Verifications.
* ``stock_inventory_lockdown``: Lock down locations during inventories.

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

You can configure the rules to compute the cycle count, acting as follow:

#. Go to *Inventory > Configuration > Cycle Count Rules*.
#. Create as much cycle count rules as you want.
#. Assign the rules to the Warehouse or zones where you want to apply the rules
in.
#. Go to *Inventory > Configuration > Warehouse Management > Warehouses* and
set a *Cycle Count Planning Horizon* for each warehouse.

Usage
=====

Once you have some rules configured for your warehouses, you can proceed as
is described below.

#. Go to *Inventory > Configuration > Warehouse Management > Warehouses*.
#. Select all the warehouses you want to compute the rules in.
#. Click on "Action" and then in "Compute Cycle Count Rules". (**note**: A
cron job will do this for every warehouse daily.)
#. Go to *Operations > Cycle Counts*.
#. Select a planned Cycle Count and confirm it, this will create a draft
Inventory Adjustment.
#. In the right top corner of the form view you can access to the generated
Inventory Adjustment.
#. Proceed with the Inventory Adjustment as usual.

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

* Assess the possibility to refactor `action_compute_cycle_count_rules` method
converting some of the searches to actual fields. E.g.
`inventory_history_ids` for all the inventories done in a location.

Changelog
=========

13.0.1.0.0 (2020-02-05)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migrated to v13.


12.0.1.0.0 (2019-06-24)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migrated to v12.


11.0.1.0.0 (2018-09-19)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migrated to v11. Start of history.

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_cycle_count%0Aversion:%2016.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
~~~~~~~

* ForgeFlow

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

* Lois Rilo <lois.rilo@forgeflow.com>
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
* Jim Hoefnagels <jim.hoefnagels@dynapps.be>
* Urvisha Desai <udesai@opensourceintegrators.com>

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-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px
:target: https://github.com/LoisRForgeFlow
:alt: LoisRForgeFlow

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-LoisRForgeFlow|

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_cycle_count>`_ 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_cycle_count/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import reports
34 changes: 34 additions & 0 deletions stock_cycle_count/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2017-18 ForgeFlow Business and IT Consulting Services S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Cycle Count",
"summary": "Adds the capability to schedule cycle counts in a "
"warehouse through different rules defined by the user.",
"version": "16.0.1.0.0",
"maintainers": ["LoisRForgeFlow"],
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse Management",
"depends": [
"stock_account",
"stock_inventory_discrepancy",
"stock_inventory_exclude_sublocation",
],
"data": [
"views/stock_cycle_count_view.xml",
"views/stock_cycle_count_rule_view.xml",
"views/stock_warehouse_view.xml",
"views/stock_inventory_view.xml",
"views/stock_location_view.xml",
"views/res_config_settings_view.xml",
"data/cycle_count_sequence.xml",
"data/cycle_count_ir_cron.xml",
"reports/stock_location_accuracy_report.xml",
"reports/stock_cycle_count_report.xml",
"security/ir.model.access.csv",
],
"license": "AGPL-3",
"installable": True,
"application": False,
}
16 changes: 16 additions & 0 deletions stock_cycle_count/data/cycle_count_ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ForgeFlow S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record forcecreate="True" id="ir_cron_compute_cycle_count_action" model="ir.cron">
<field name="name">Cycle Count Planner Computation</field>
<field name="state">code</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="model_id" ref="stock.model_stock_warehouse" />
<field name="code">model.cron_cycle_count()</field>
</record>
</odoo>
12 changes: 12 additions & 0 deletions stock_cycle_count/data/cycle_count_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ForgeFlow S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="seq_cycle_count" model="ir.sequence">
<field name="name">Cycle Count</field>
<field name="code">stock.cycle.count</field>
<field name="prefix">CC/%(range_year)s/</field>
<field name="padding">5</field>
<field name="company_id" eval="False" />
</record>
</odoo>
Loading
Loading