User ID in Sequence Prefix/Suffix
Include current User ID in Odoo document numbers
SO/%(uid)s/%(year)s/0001
Example: Sales Order created by User ID 5
By default, Odoo sequences only support date-related placeholders (year, month, day, etc.).
This module enhances the core ir.sequence functionality by introducing the %(uid)s placeholder.
It allows you to dynamically inject the User ID of the person creating the record directly into the generated document number.
How to use: Simply go to your sequence settings and add
%(uid)s in the Prefix or Suffix field.
Core Capabilities
Dynamic User context
Automatically detects the current user ID during record creation and applies it to the sequence.
Safe Integration
Transparently extends Odoo's internal logic. If the placeholder is not used, the system works as standard.
Developed by hamzbond
Visit Website
Please log in to comment on this module