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

Module: Point of Sale - Coupons & Loyalty

Entity: loyalty.rule

Compute Method: _compute_promo_barcode

Inputs Method Outputs
for rule in self:
            rule.promo_barcode = self.env['loyalty.card']._generate_code()

Back to entity