From b9069bbafff321ce7b29b2f03b91a7c535239de6 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 20 Aug 2021 14:07:57 +0000 Subject: [PATCH] [IMP] ir.actions.server: cleanup, sync and spellcheck inline doc - sync both versions of the doc - spellcheck/unify the wording, capitalization, etc. - "Odoo" is not a person, and using it in documentation sentences is generally redundant and weird, unless there is a real ambigiuty. By default, it's clear that everything we're talking about is Odoo-related. Part-of: odoo/odoo#75320 --- odoo/addons/base/models/ir_actions.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/odoo/addons/base/models/ir_actions.py b/odoo/addons/base/models/ir_actions.py index fb8fa44651c..68d4719a20f 100644 --- a/odoo/addons/base/models/ir_actions.py +++ b/odoo/addons/base/models/ir_actions.py @@ -408,15 +408,16 @@ class IrActionsServer(models.Model): _order = 'sequence,name' DEFAULT_PYTHON_CODE = """# Available variables: -# - env: Odoo Environment on which the action is triggered -# - model: Odoo Model of the record on which the action is triggered; is a void recordset +# - env: environment on which the action is triggered +# - model: model of the record on which the action is triggered; is a void recordset # - record: record on which the action is triggered; may be void # - records: recordset of all records on which the action is triggered in multi-mode; may be void # - time, datetime, dateutil, timezone: useful Python libraries -# - float_compare: Odoo function to compare floats based on specific precisions +# - float_compare: utility function to compare floats based on specific precision # - log: log(message, level='info'): logging function to record debug information in ir.logging table -# - UserError: Warning Exception to use with raise -# - Command: x2Many commands namespace +# - _logger: _logger.info(message): logger to emit messages in server logs +# - UserError: exception class for raising user-facing warning messages +# - Command: x2many commands namespace # To return an action, assign: action = {...}\n\n\n\n""" type = fields.Char(default='ir.actions.server')