Search 1.9 billion lines of Odoo code on GitHub

shopinvader_product_stock_forecast

Author: Camptocamp SA
License: AGPL-3
Branch: 14.0
Repository: acsone/odoo-shopinvader
Dependencies: shopinvader_product_stock
Languages: HTML (372, 54.4%), Python (210, 30.7%), XML (37, 5.4%), and reStructuredText (65, 9.5%)
Other branches: 14-merge_1319_1342, 14-shopinvader-product-link, 14-shopinvader-xbo, 14-shopinvader_assortment-xbo, 14-shopinvader_locomotive-xbo, 14-shopinvader_notification-xbo, 14.0-abi_master, 14.0-fix-sudo_cart_additem-dro, 14.0-fix-tests-equals-dro, 14.0-imp-black-dro, 14.0-imp-sale-profile-dro, 14.0-imp-shopinvader_assortment_cron-dro, 14.0-imp-shopinvader_elastic_demo-dro, 14.0-imp-shopinvader_payment-dro, 14.0-mig-new-cart-service, 14.0-mig-shopinvader_customer_autobind, 14.0-mig-shopinvader_delivery_carrier_category_keep_carrier, 14.0-mig-shopinvader_delivery_instruction, 14.0-mig-shopinvader_validation_token, 14.0-mig-shopinvader_validation_token_guest, 14.0-prepare-future-lmi, 14.0-shopinvader-variant-exporter, 14.0-shopinvader_access_partner_binding, 14.0-shopinvader_company_index, 14.0-shopinvader_delivery_carrier_fix, 14.0-shopinvader_difference_backend, 14.0-shopinvader_locomotive_country_state_id, 14.0-shopinvader_membership_subscribe, 14.0-shopinvader_sale_profile_price_update, 14.0-shopinvader_utm-xbo, 14.0-switch-oca-copier-dro, and shopinvader_store_cache_fill
Other repositories: ForgeFlow/odoo-shopinvader, akretion/odoo-shopinvader, camptocamp/odoo-shopinvader, kmee/odoo-shopinvader, and shopinvader/odoo-shopinvader

<h1 class="title">Shopinvader Product Stock Forecast</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/tree/14.0/shopinvader_product_stock_forecast"><img alt="shopinvader/odoo-shopinvader" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github" /></a></p> <p>This module exports the forecasted stock quantities for each product. This data can be used by the frontend to compute virtual stocks at any given date.</p> <p>The stock forecast data is a list of planned stock variations, like so:</p> <pre> <code lang="python">[ {&quot;date&quot;: &quot;2021-12-01T08:00:00&quot;, &quot;qty&quot;: 10}, {&quot;date&quot;: &quot;2021-12-02T10:00:00&quot;, &quot;qty&quot;: -1}, {&quot;date&quot;: &quot;2021-12-03T15:00:00&quot;, &quot;qty&quot;: -4}, {&quot;date&quot;: &quot;2021-12-04T11:00:00&quot;, &quot;qty&quot;: 5}, ]</code> </pre> <p>This data can be used by aggregated and used by the frontend to compute the virtual stock of a product at any given date.</p> <p>For example, assuming the initial <cite>qty_available</cite> is <cite>10</cite>, and that today is <cite>2021-12-01 00:00:00</cite>, we can infer the following:</p> <ul class="simple"> <li>After <cite>2021-12-01 08:00:00</cite>, stock will be <cite>20</cite></li> <li>After <cite>2021-12-02 10:00:00</cite>, stock will be <cite>19</cite></li> <li>After <cite>2021-12-03 15:00:00</cite>, stock will be <cite>15</cite></li> <li>After <cite>2021-12-04 11:00:00</cite>, stock will be <cite>20</cite></li> </ul> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>On the Shopinvader Backend, enable the <strong>Stock Forecast</strong>.</p> <p>Optionally, you can set a <strong>Stock Forecast Horizon</strong> in days to limit the number of days to forecast.</p> <div class="admonition warning"> <p class="first admonition-title">Warning</p> <p>The <cite>shopinvader_product_stock</cite> module will let you use a different field other than <cite>qty_available</cite> to export the current stock.</p> <p class="last">The forecast may not make sense if you don't have the proper stock to start with, so it's recommended not to use a different field there.</p> </div> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2> <p>It may be a good idea to implement a <cite>product_stock_forecast_interval</cite> setting, to round and group forecasted lines.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues">GitHub Issues</a>. 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 <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_product_stock_forecast%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Camptocamp SA</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul> <li><p class="first"><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a></p> <blockquote> <ul class="simple"> <li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;camptocamp.com">ivan.todorovich&#64;camptocamp.com</a>&gt;</li> </ul> </blockquote> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>Current maintainer:</p> <p><a class="reference external" href="https://github.com/ivantodorovich"><img alt="ivantodorovich" src="https://github.com/ivantodorovich.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/tree/14.0/shopinvader_product_stock_forecast">shopinvader/odoo-shopinvader</a> project on GitHub.</p> <p>You are welcome to contribute.</p>