From 2aa2ee994d9d13198a845d09ae4fbbd5bef1629c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 17 Sep 2014 22:05:44 +0200 Subject: [PATCH] Add pre-validation on button issue4121 review8511002 --- CHANGELOG | 1 + doc/topics/views/index.rst | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 934a61ad1f..7004ae522e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add pre-validation on button * Model and Field access checked only if _check_access is set * Add check_access to RPC * Add check_access to Wizard and Report diff --git a/doc/topics/views/index.rst b/doc/topics/views/index.rst index bcccec9424..0f7950479b 100644 --- a/doc/topics/views/index.rst +++ b/doc/topics/views/index.rst @@ -113,6 +113,9 @@ List of attributes shared by many form elements: * ``icon``: Only for button, it must return the icon name to use or False. + * ``pre_validate``: Only for button, it contains a domain to apply + on the record before calling the button. + .. _common-attributes-help: * ``help``: The string that will be displayed when the cursor hovers over