Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Generate Barcodes (Abstract)

Entity: barcode.rule

Compute Method: _compute_padding

Inputs Method Outputs
  • pattern
for rule in self:
            rule.padding = rule.pattern.count(".")

Back to entity