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.code.mapping

Compute Method: _compute_code

View 18.0
Inputs Method Outputs
  • account_id
  • company_id
  • company_id._origin
+ for record in self:
+             account = record.account_id.with_company(record.company_id._origin)
+             record.code = account.code
  • code

Back to entity