Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0[FIX] product_lot_sequence: Fix sequence incrementation opening detailed operations #1323

Commits on Apr 24, 2023

  1. prod_lot_seq: Fix sequence incrementation opening detailed operations

    When opening the detailed operations view of a stock move, Odoo is calling
    stock.production.lot._get_next_serial to set stock.move.next_serial field
    anytime the product is tracked by serial and the move is assigned.
    
    If we use this module with product or global policy, the respective sequence
    will therefore be called and incremented anytime this view is open, even
    if the picking is not creating lots (e.g. delivery orders or internal transfers)
    
    To avoid incrementing the sequence unnecessarily, we only allow to get the next
    sequence number the first time this view is opened and if the move has
    to create new serial numbers.
    Otherwise, we force the value to be set to stock.move.next_serial field to
    an empty string if no serial has to be created through this move, or to the
    next_serial value assigned on the first opening of the view.
    grindtildeath committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    c886da5 View commit details
    Browse the repository at this point in the history