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.printer

Compute Method: _compute_paper_size_keys

Inputs Method Outputs
for record in self:
            standard_size = ['58', '80', 'label']

            if record.printer_type == 'epson_epos':
                epson_models = [key for key, _ in EPSON_MODELS]
                standard_size.extend(epson_models)

            record.paper_size_keys = ",".join(standard_size)

Back to entity