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

Module: Invoicing

Entity: account.cash.rounding

Compute Method: _compute_name_placeholder

Inputs Method Outputs
method_labels, strategy_labels = (dict(self._fields[fname]._description_selection(self.env)) for fname in ('rounding_method', 'strategy'))
for record in self:
            record.name_placeholder = ' '.join(filter(None, [
                method_labels.get(record.rounding_method),
                formatLang(record.env, record.rounding) if record.rounding else None,
                strategy_labels['biggest_tax'] if record.strategy == 'biggest_tax' else None,
            ]))

Back to entity