forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '14.0-mig-stock_orderpoint_generator' of git+ssh://githu…
…b.com/sergiocorato/stock-logistics-warehouse into 14.0
- Loading branch information
Showing
96 changed files
with
35,054 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/stock_orderpoint_generator/odoo/addons/stock_orderpoint_generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_orderpoint_generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
===================== | ||
Order point generator | ||
===================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:fcdb2559141140bd1a694cf0030735e0404fba6b98444419ada9d1459ba28d37 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/13.0/stock_orderpoint_generator | ||
: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-13-0/stock-logistics-warehouse-13-0-stock_orderpoint_generator | ||
: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=13.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Add a wizard to configure reordering rules for multiple products in one go, | ||
and allow to automatically update reordering rules from rule templates. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
Reordering rule templates can be configured in "Inventory > Configuration > | ||
Products > Reordering Rule Templates". | ||
|
||
The frequency of the cron that updates the Reordering Rules can be configured | ||
in "Settings > Technical > Automation > Scheduled Actions". The name of the | ||
scheduled action is "Reordering Rule Templates Generator". | ||
|
||
Usage | ||
===== | ||
|
||
By activating the "Create Rules Automatically" on a reordering rule template, | ||
you are able to select a list of products. Any change on the template will then | ||
be replicated on the products Reordering Rules. The change is not immediate as | ||
it is processed by a scheduled action. | ||
|
||
Aditionally, minimum and maximum quantity fields can be computed automatically | ||
if desired for the set of products and according to the desired criteria for | ||
the time range given. To do so: | ||
|
||
#. In an Orderpoint template, check "Auto minimum" or "Auto maximum" or both. | ||
#. The criteria fields for either one or another are visible now. | ||
#. Select a time range of moves to evalute. For every product a history of | ||
the resulting stock for every move in such range and the location given | ||
on the Orderpoint template will be obtained. | ||
#. Select a criteria method to compute the minimum o maximum quantity: | ||
|
||
- Maximum: the maximum stock value for the given period. | ||
- Most frequent: the median of the history of stock values for the specified | ||
range. Useful when a large amount of history values are obtained, as it | ||
tends to avoid deviation caused by extreme values in a common avarage. | ||
- Average: Arithmetic mean of the stock history. | ||
- Minimum: the minimum stock value for the given period. | ||
|
||
Lastly, you can promptly create Reordering Rules for a product or a product | ||
template using the "Reordering Rules Generator". Note that it will replace all | ||
the existing rules for the product. You will usually not want to use this | ||
feature on products that have Automatic Reordering Rules Templates. | ||
|
||
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 to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_orderpoint_generator%0Aversion:%2013.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 | ||
~~~~~~~ | ||
|
||
* Camptocamp | ||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Yannick Vaucher <[email protected]> | ||
* Matthieu Dietrich <[email protected]> | ||
* Cyril Gaudin <[email protected]> | ||
* Guewen Baconnier <[email protected]> | ||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Vicent Cubells | ||
* David Vidal | ||
* Víctor Martínez | ||
|
||
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/13.0/stock_orderpoint_generator>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2012-2016 Camptocamp SA | ||
# Copyright 2019 Tecnativa | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Order point generator", | ||
"summary": "Mass configuration of stock order points", | ||
"version": "14.0.1.0.0", | ||
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)", | ||
"category": "Warehouse", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/OCA/stock-logistics-warehouse", | ||
"depends": ["stock"], | ||
"data": [ | ||
"views/orderpoint_template_views.xml", | ||
"wizard/orderpoint_generator_view.xml", | ||
"data/ir_cron.xml", | ||
"security/ir.model.access.csv", | ||
], | ||
"installable": True, | ||
"auto_install": False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="ir_cron_auto_orderpoint_template" model="ir.cron"> | ||
<field name="name">Reordering Rule Templates Generator</field> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">hours</field> | ||
<field name="numbercall">-1</field> | ||
<field eval="False" name="doall" /> | ||
<field name="model_id" ref="model_stock_warehouse_orderpoint_template" /> | ||
<field name="code">model._cron_create_auto_orderpoints()</field> | ||
<field name="active" eval="True" /> | ||
</record> | ||
</odoo> |
Oops, something went wrong.