From cbc381fb9aa33c962ed02c447ef21dc37e73518b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 12 Jan 2017 12:35:06 +0100 Subject: [PATCH] [IMP] ir_actions: improve form view usability * improve string of action that creates the 'more' menu entry; still not the best label but at least less error prone * improve help tab by adding comments for model and records variables --- odoo/addons/base/ir/ir_actions.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/odoo/addons/base/ir/ir_actions.xml b/odoo/addons/base/ir/ir_actions.xml index 47e8e93418f..7fc16f6eb28 100644 --- a/odoo/addons/base/ir/ir_actions.xml +++ b/odoo/addons/base/ir/ir_actions.xml @@ -263,13 +263,13 @@
-
@@ -327,7 +327,9 @@

Various fields may use Python code or Python expressions. The following variables can be used:

  • env: Odoo Environement on which the action is triggered
  • -
  • record: browse_record of the record on which the action is triggered
  • +
  • model: Odoo Model of the record on which the action is triggered; is a void recordset
  • +
  • record: browse record on which the action is triggered
  • +
  • records: record set of records on which the action is triggered in multi mode
  • time, datetime, timezone: Python module
  • log(message, level='info'): a logging function to create ir_logging records