diff --git a/addons/account_cancel/__init__.py b/addons/account_cancel/__init__.py
index 49a09e5570e..27c25120965 100644
--- a/addons/account_cancel/__init__.py
+++ b/addons/account_cancel/__init__.py
@@ -19,5 +19,4 @@
#
##############################################################################
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
+import models
diff --git a/addons/account_cancel/account_cancel_view.xml b/addons/account_cancel/account_cancel_view.xml
index af094697de2..59d1afa4b12 100644
--- a/addons/account_cancel/account_cancel_view.xml
+++ b/addons/account_cancel/account_cancel_view.xml
@@ -34,6 +34,17 @@
+
+ bank.statement.draft.form.inherit
+ account.bank.statement
+
+
+
+
+
+
+
+
bank.statement.cancel.form.inherit
account.bank.statement
diff --git a/addons/account_cancel/i18n/account_cancel.pot b/addons/account_cancel/i18n/account_cancel.pot
index 7d20d9fc300..1aeab72aece 100644
--- a/addons/account_cancel/i18n/account_cancel.pot
+++ b/addons/account_cancel/i18n/account_cancel.pot
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-01-21 14:07+0000\n"
-"PO-Revision-Date: 2015-01-21 14:07+0000\n"
+"POT-Creation-Date: 2015-08-03 18:10+0000\n"
+"PO-Revision-Date: 2015-08-03 18:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,16 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: account_cancel
+#: model:ir.model,name:account_cancel.model_account_bank_statement
+msgid "Bank Statement"
+msgstr ""
+
+#. module: account_cancel
+#: model:ir.model,name:account_cancel.model_account_bank_statement_line
+msgid "Bank Statement Line"
+msgstr ""
+
#. module: account_cancel
#: view:account.bank.statement:account_cancel.bank_statement_cancel_form_inherit
msgid "Cancel"
@@ -26,3 +36,13 @@ msgstr ""
msgid "Cancel Invoice"
msgstr ""
+#. module: account_cancel
+#: code:addons/account_cancel/models/account_bank_statement.py:22
+#, python-format
+msgid "Please set the bank statement to New before canceling."
+msgstr ""
+
+#. module: account_cancel
+#: view:account.bank.statement:account_cancel.bank_statement_draft_form_inherit
+msgid "Reset to New"
+msgstr ""
diff --git a/addons/account_cancel/models/__init__.py b/addons/account_cancel/models/__init__.py
new file mode 100644
index 00000000000..433ad1bafd1
--- /dev/null
+++ b/addons/account_cancel/models/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+import account_bank_statement
diff --git a/addons/account_cancel/models/account_bank_statement.py b/addons/account_cancel/models/account_bank_statement.py
new file mode 100644
index 00000000000..821014abf37
--- /dev/null
+++ b/addons/account_cancel/models/account_bank_statement.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from openerp import models, api, _
+from openerp.exceptions import Warning
+
+
+class BankStatement(models.Model):
+ _inherit = 'account.bank.statement'
+
+ @api.multi
+ def button_draft(self):
+ self.state = 'draft'
+
+class BankStatementLine(models.Model):
+ _inherit = 'account.bank.statement.line'
+
+ @api.multi
+ def cancel(self):
+ for line in self:
+ if line.statement_id.state == 'confirm':
+ raise Warning(_("Please set the bank statement to New before canceling."))
+ return super(BankStatementLine, self).cancel()