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

Module: Test ORM

Entity: test_orm.multi_compute_inverse

Compute Method: _compute_bars

View 20.0
Inputs Method Outputs
  • foo
+ self.env.context.get('log', []).append('compute')
+ for record in self:
+             substrs = record.foo.split('/') + ['', '', '']
+             record.bar1, record.bar2, record.bar3 = substrs[:3]
  • bar1
  • bar2
  • bar3

Back to entity