Search 1.9 billion lines of Odoo code on GitHub

stock_production_lot_expiry

Author: ACSONE SA/NV,Odoo Community Association (OCA)
License: AGPL-3
Branch: 16.0-mig-stock_production_lot_expiry
Repository: acsone/product-attribute
Dependencies: product, product_expiry, and stock
Languages: HTML (362, 35.0%), Python (460, 44.5%), XML (135, 13.1%), and reStructuredText (76, 7.4%)
Other branches: 10.0-add-stock-production-lot-expiry-lmi, and 16.0-alc_master

<h1 class="title">Stock Production Lot Expiry</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/OCA/product-attribute/tree/10.0/stock_production_lot_expiry"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/product-attribute-10-0/product-attribute-10-0-stock_production_lot_expiry"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/135/10.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of 'Products Expiration Date' (product_expiry) to easily detect expired lot.</p> <p>It adds two new fields on the Lot/Serial model.</p> <ul class="simple"> <li>Expiry date (expiry_date)</li> <li>Is expired (is_expired)</li> </ul> <p>The 'Expiry date' is a field filled at te creation of a lot/serial with the date on which the lot/serial is expired. This field is filled from one of the date fields present on the lot/serial ( 'end of life' or 'best before date' or 'removal date' or 'alert date' or ...). The field to use can be configured at the product level or the category level.</p> <p>The 'Is expired' field is a computed field that can be used into the business code to easily know if a product is expired.</p> <p>It also allows you to easily search for expired lots.</p> <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="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>The field to use to fill the 'Expiry date' can be configured a 2 levels:</p> <blockquote> <ul class="simple"> <li>on the product category</li> <li>on the product itself</li> </ul> </blockquote> <p>The name of the field to use for a product is determined as follow:</p> <p>If the field name is specified on the product, we use this. Otherwise we go through the category hierarchy until the field name to use is defined. If the field name is not defined by the category hierarchy we take the one defined by the config parameter <cite>stock_product_lot_expiry.field_name</cite> (default 'removal_date'). This configuration is available into stock configuration from.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/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/OCA/product-attribute/issues/new?body=module:%20stock_production_lot_expiry%0Aversion:%2010.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="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>ACSONE SA/NV</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Laurent Mignon &lt;<a class="reference external" href="mailto:laurent.mignon&#64;acsone.eu">laurent.mignon&#64;acsone.eu</a>&gt; (<a class="reference external" href="https://www.acsone.eu/">https://www.acsone.eu/</a>)</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/lmignon"><img alt="lmignon" src="https://github.com/lmignon.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/10.0/stock_production_lot_expiry">OCA/product-attribute</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>