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

Module: Accounting with Operating Units

Entity: account.payment

Compute Method: _compute_operating_unit_id

Inputs Method Outputs
  • journal_id
  • journal_id.operating_unit_id
for payment in self.filtered("journal_id"):
            payment.operating_unit_id = payment.journal_id.operating_unit_id

Back to entity