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

Module: Third Party and Deferred/Electronic Checks Management

Entity: account.payment

Compute Method: _compute_l10n_latam_check_number

Inputs Method Outputs
  • check_number
""" This dummy computed field is added for two reasons:
        1. add a new field so that we don't need to modify attrs on the views for the original check_number field
        (not nice on terms of inheritance)
        2. if we set it as related (with readonly=False) it didn't work properly for our use case: If the user changes
        the proposed number the value was not saved. This computed with inverse does the trick"""
for rec in self:
            rec.l10n_latam_check_number = rec.check_number

Back to entity