Skip to main content

Adds ability to define a lot sequence from the product

Project description

Odoo Community Association

Product Lot Sequence

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

Adds ability to define a lot sequence from the product which will be proposed upon creating new lots.

Table of contents

Configuration

Lot Sequence policy

There are two ways you can configure this module through the use of System Parameter `product_lot_sequence.policy`:

  • “product”: This is the default behaviour once you install this module. It’s the same than in previous Odoo versions with this module installed, i.e. it allows to define a dedicated sequence on each product.

  • “global”: This was the default behaviour from previous Odoo versions when this module was not installed, i.e it will always use the same global sequence for every product.

If any other value is used for this System Parameter, then you will get the default behaviour from odoo 15.0 which will look for the last lot number for each product and will increment it.

Default Number of Digits for Product Sequence Generation

The default is 7 digits. To change that to something else, go to the inventory configuration, find “Sequence Number of Digits” and change the number.

Usage

To use this module:

  • Go to Inventory > Products

  • Under the inventory tab when tracking set to lots 4 new fields will be displayed

  • If a sequence is not selected, a new one using the prefix, padding and next number fields, will be created

  • Go to Inventory > Lot/Serial Numbers

  • Create new Lot/Serial number

  • Select the product and the next number of the product sequence will be automatically proposed

Known issues / Roadmap

  • There is an issue with the use of ir.sequence with the newer version of Odoo.

Mostly, when opening the detailed operations of an assigned picking for a product tracked by serial numbers, Odoo systematically calls _get_next_serial even if there is not any serial number to generate. Moreover, the widget allowing to generate the serial numbers will not call the sequence but only increment the number according to the next serial, potentially leading to a sequence that is not in sync anymore with the created serial numbers.

cf https://github.com/OCA/product-attribute/issues/1326

Bug Tracker

Bugs are tracked on GitHub 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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ForgeFlow S.L.

Contributors

Other credits

The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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/product-attribute project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_product_lot_sequence-18.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_product_lot_sequence-18.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0169f24eb59eea1295b2a7bbb8c52a9547230de43f4cda606c2a31913c8b6efc
MD5 bccf1798a16447446b5d1c7c0c546aa1
BLAKE2b-256 909052bd1fc9e9b5142d851df6b2456a36cd0995a168527e84328fd463a731c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page