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

Module: Product Sticker

Entity: product.sticker.mixin

Compute Method: _compute_sticker_count

Inputs Method Outputs
company_domain = self.env["product.sticker"]._build_sticker_domain_company()
for record in self:
            record.sticker_count = len(
                record.sudo().sticker_ids.filtered_domain(company_domain)
            )

Back to entity