From 2a5c7f322c1c7eade8b7a56c5a4563f973b52e9e Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Fri, 4 Dec 2009 16:31:41 +0530 Subject: [PATCH] [ADD]: add new wizard to change the currency of invoice bzr revid: mga@tinyerp.com-20091204110141-y7gri3ex78j1thaf --- addons/account/account_wizard.xml | 3 +- addons/account/wizard/__init__.py | 1 + .../account/wizard/wizard_change_currency.py | 106 ++++++++++++++++++ 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 addons/account/wizard/wizard_change_currency.py diff --git a/addons/account/account_wizard.xml b/addons/account/account_wizard.xml index 2c91c8c53c2..d8270553cef 100644 --- a/addons/account/account_wizard.xml +++ b/addons/account/account_wizard.xml @@ -114,6 +114,7 @@ - + + diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py index 5e0e39bf8f7..d207c3d5c27 100644 --- a/addons/account/wizard/__init__.py +++ b/addons/account/wizard/__init__.py @@ -59,6 +59,7 @@ import wizard_statement_from_invoice import wizard_print_journal import wizard_central_journal import wizard_general_journal +import wizard_change_currency # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/wizard/wizard_change_currency.py b/addons/account/wizard/wizard_change_currency.py new file mode 100644 index 00000000000..c2c0ffd1478 --- /dev/null +++ b/addons/account/wizard/wizard_change_currency.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +import wizard +import pooler + +class wizard_change_currency(wizard.interface): + ''' + OpenERP Wizard + ''' + form = ''' +
+ + ''' + + message = ''' +
+