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

Compute Method: _compute_code

View 17.0 View 19.0
Inputs Method Outputs
  • code_store
+ for record, record_root in zip(self, self.with_company(self.env.company.root_id).sudo()):
+             # Need to set record.code with `company = self.env.company`, not `self.env.company.root_id`
+             record.code = record_root.code_store
  • code

Back to entity