diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index a74e82ef4a1..abf88954672 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -164,6 +164,7 @@
+
@@ -232,6 +233,7 @@
+
diff --git a/addons/account/account_invoice_workflow.xml b/addons/account/account_invoice_workflow.xml
index 3e1e8afd8b1..89a62ac3a0d 100644
--- a/addons/account/account_invoice_workflow.xml
+++ b/addons/account/account_invoice_workflow.xml
@@ -6,7 +6,7 @@
account.invoiceTrue
-
+
True
@@ -31,10 +31,16 @@ action_number()
write({'state':'open'})
function
+
+
+ open
+ write({'state':'open'})
+ function
+ paid
- True
+
write({'state':'paid'})function
@@ -46,14 +52,14 @@ write({'state':'open'})
write({'state':'cancel'})
function
-
+
-
+
@@ -98,5 +104,15 @@ write({'state':'cancel'})
invoice_cancel
+
+
+
+ open_test
+
+
+
+
+ invoice_cancel
+
\ No newline at end of file
diff --git a/addons/account/account_wizard.xml b/addons/account/account_wizard.xml
index 6c18f8f9b61..b0e0604b300 100644
--- a/addons/account/account_wizard.xml
+++ b/addons/account/account_wizard.xml
@@ -77,5 +77,7 @@
+
+
diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py
index 9e8dbf78088..08a8f142533 100644
--- a/addons/account/wizard/__init__.py
+++ b/addons/account/wizard/__init__.py
@@ -61,7 +61,11 @@ import wizard_account_chart
import wizard_move_line_select
import wizard_validate_account_move
-import wizard_use_model# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+import wizard_use_model
+
+import wizard_state_open
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/wizard/wizard_state_open.py b/addons/account/wizard/wizard_state_open.py
new file mode 100644
index 00000000000..c8083ce338f
--- /dev/null
+++ b/addons/account/wizard/wizard_state_open.py
@@ -0,0 +1,64 @@
+##############################################################################
+#
+# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+#
+# #
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+##############################################################################
+
+import wizard
+import pooler
+import netsvc
+
+form = '''
+