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

Module: Base

Entity: ir.actions.server

Compute Method: _compute_show_code_history

View 20.0
Inputs Method Outputs
  • id
  • code
+ self.show_code_history = False
+ History = self.env["ir.actions.server.history"]
+ for action in self.filtered(lambda a: a.state == "code"):
+             action.show_code_history = History.search_count([
+                 ("action_id", "=", action.id),
+                 ("code", "!=", action.code),
+             ]) > 0
  • show_code_history

Back to entity