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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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 |
|
