From 4dcb7b6dd39cff28eef1e0a2c8b5ef97016d49f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 10 Sep 2012 15:26:34 +0200 Subject: [PATCH] Merge all kind of buttons review483002 --- CHANGELOG | 1 + doc/ref/models/models.rst | 5 ++++ trytond/ir/module/module.xml | 30 ++++++++---------------- trytond/ir/ui/form.rnc | 4 ---- trytond/ir/ui/form.rng | 15 ------------ trytond/ir/ui/tree.rnc | 4 ---- trytond/ir/ui/tree.rng | 15 ------------ trytond/ir/ui/view.py | 7 ++++++ trytond/ir/ui/view.xml | 6 +---- trytond/model/modelview.py | 44 +++++++++++++++++++++++++----------- trytond/res/request.xml | 9 +++----- 11 files changed, 58 insertions(+), 82 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1c5638ce82..8f12ad3ff8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Merge all kind of buttons * Use XML id for board action instead of id * Add states attribute to notebook * Allow to use tuple for Reference diff --git a/doc/ref/models/models.rst b/doc/ref/models/models.rst index 2a24c3a72d..72def97bd6 100644 --- a/doc/ref/models/models.rst +++ b/doc/ref/models/models.rst @@ -117,6 +117,11 @@ Static methods: Decorate button method to check group access. +.. staticmethod:: ModelView.button_action(action) + + Same as :stat:`ModelView.button` but return the action id of the XML `id` + action. + Instance methods: .. method:: ModelView.fields_view_get([view_id[, view_type[, toolbar]]]) diff --git a/trytond/ir/module/module.xml b/trytond/ir/module/module.xml index 2ec2b309c7..79ad2644df 100644 --- a/trytond/ir/module/module.xml +++ b/trytond/ir/module/module.xml @@ -18,18 +18,12 @@ this repository contains the full copyright notices and license terms. -->