Skip to Content
Menu
v 16.0 Third Party 666
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Inventory (stock)
Discuss (mail)
Lines of code 165
Technical Name stock_picking_auto_create_lot
LicenseAGPL-3
Websitehttps://github.com/OCA/stock-logistics-workflow
Versions 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Odoo Community Association

Stock Picking Auto Create Lot

Production/Stable License: AGPL-3 OCA/stock-logistics-workflow Translate me on Weblate Try me on Runboat

This module extends the functionality of stock module to allow auto create lots for selected picking types.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to a Inventory > Configuration > Operation Types.
  2. Set ‘auto create lot’ option for this operation type.
  3. Go to a Inventory > Master Data > Products.
  4. Set ‘auto create lot’ option for the products you need.
  5. Go to a Inventory > Configuration > Products > Product Categories.
  6. Set ‘auto create lot’ option for the categories you need.

It’s possible to configure by code a way to force the setting of the auto lot when printing the detailed operation labels. To do so, pass the context key force_auto_lot to the report. This is a simple example with a server action, but it can be done with overriding methods as well:

<record id="action_print_detailed_operation" model="ir.actions.server">
     <field name="name">Print detailed operations</field>
     <field name="model_id" ref="stock.model_stock_move_line" />
     <field
           name="binding_model_id"
           ref="stock.model_stock_move_line"
     />
     <field name="binding_view_types">list</field>
     <field name="state">code</field>
     <field name="code">
if records:
     report = env["ir.actions.report"].sudo()._get_report("my_custom_module.my_custom_report_xml_id")
     action = report.with_context(force_auto_lot=True).report_action(records.ids)
     </field>
</record>

Usage

To use this module you need to:

  1. Go to a Product > Inventory tab.
  2. Set a tracking option for this product.
  3. Set auto create lot on the product or in the category.
  4. Go to Inventory > Incoming and create one.
  5. Validate picking without lot.

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

  • ACSONE SA/NV
  • Tecnativa

Contributors

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.

Current maintainer:

sergio-teruel

This module is part of the OCA/stock-logistics-workflow project on GitHub.

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

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.