From 673a198dfeb4e32fdbb899638734add7eb9cca45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Aug 2009 18:20:43 +0200 Subject: [PATCH] Add a form at the end of account.account.update_chart_account wizard for issue933 --- account.py | 21 ++++++++++++++++----- account.xml | 12 ++++++++++++ 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/account.py b/account.py index 35394731bf..dfef1cbb2d 100644 --- a/account.py +++ b/account.py @@ -1936,6 +1936,14 @@ class UpdateChartAccountInit(ModelView): UpdateChartAccountInit() +class UpdateChartAccountStart(ModelView): + 'Update Chart Account from Template Start' + _name = 'account.account.update_chart_account.start' + _description = __doc__ + +UpdateChartAccountStart() + + class UpdateChartAccount(Wizard): 'Update Chart Account from Template' _name = 'account.account.update_chart_account' @@ -1946,15 +1954,18 @@ class UpdateChartAccount(Wizard): 'object': 'account.account.update_chart_account.init', 'state': [ ('end', 'Cancel', 'tryton-cancel'), - ('update_account', 'Ok', 'tryton-ok', True), + ('start', 'Ok', 'tryton-ok', True), ], }, }, - 'update_account': { + 'start': { + 'actions': ['_action_update_account'], 'result': { - 'type': 'action', - 'action': '_action_update_account', - 'state': 'end', + 'type': 'form', + 'object': 'account.account.update_chart_account.start', + 'state': [ + ('end', 'Ok', 'tryton-ok', True), + ], }, }, } diff --git a/account.xml b/account.xml index b0b01cd95e..a198c67e47 100644 --- a/account.xml +++ b/account.xml @@ -486,6 +486,18 @@ this repository contains the full copyright notices and license terms. --> + + account.account.update_chart_account.start + form + + + + + Update Chart of Account from Template account.account.update_chart_account