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

Compute Method: _compute_custom_info

Inputs Method Outputs
fields = ['logo', 'phone', 'receipt_address', 'email', 'website']
for config in self:
            for field in fields:
                config[field] = config[f'custom_{field}'] if config.use_custom_receipt_info and config[f'custom_{field}'] else config.company_id[field]

Back to entity