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

Entity: pos.preset

Compute Method: _compute_count_linked_config

Inputs Method Outputs
for record in self:
            record.count_linked_config = self.env['pos.config'].search_count([
                '|', ('default_preset_id', 'in', record.ids),
                ('available_preset_ids', 'in', record.ids)
            ])

Back to entity