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

Module: WMS Accounting

Entity: stock.move

Compute Method: _compute_value_justification

View 20.0
Inputs Method Outputs
  • is_in
  • value_justification
  • company_currency_id
+ self.value_justification = False
+ self.value_computed_justification = False
+ for move in self:
+             if not move.is_in:
+                 continue
+             move.value_justification = move._get_value_data()['description']
+             computed_value_data = move._get_value_data(ignore_manual_update=True)
+             if computed_value_data['description'] == move.value_justification:
+                 move.value_computed_justification = False
+             else:
+                 value = move.company_currency_id.format(computed_value_data['value'])
+                 move.value_computed_justification = self.env._(
+                     'Computed value: %(value)s\n%(description)s',
+                     value=value, description=computed_value_data['description'])
  • value_justification
  • value_computed_justification

Back to entity