diff --git a/addons/account_voucher/__init__.py b/addons/account_voucher/__init__.py
index b4d48ed534e..81fc81d29c9 100644
--- a/addons/account_voucher/__init__.py
+++ b/addons/account_voucher/__init__.py
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-import account_voucher
+import models
diff --git a/addons/account_voucher/__openerp__.py b/addons/account_voucher/__openerp__.py
index f29eb209fd6..47ad10e75e6 100644
--- a/addons/account_voucher/__openerp__.py
+++ b/addons/account_voucher/__openerp__.py
@@ -30,10 +30,9 @@ This module manages:
'demo' : [],
'data' : [
'security/ir.model.access.csv',
- 'account_voucher_view.xml',
- 'voucher_sales_purchase_view.xml',
+ 'views/account_voucher_views.xml',
'security/account_voucher_security.xml',
- 'account_voucher_data.xml',
+ 'data/account_voucher_data.xml',
],
'test' : [
'test/account_voucher_users.yml',
diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml
deleted file mode 100644
index 549afc73634..00000000000
--- a/addons/account_voucher/account_voucher_view.xml
+++ /dev/null
@@ -1,173 +0,0 @@
-
-
-
-
- account.voucher.tree
- account.voucher
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.voucher.tree.supplier
- account.voucher
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.voucher.kanban
- account.voucher
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.voucher.line.form
- account.voucher.line
-
-
-
-
-
-
- account.voucher.line.tree
- account.voucher.line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.voucher.select
- account.voucher
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- account.voucher.graph
- account.voucher
-
-
-
-
-
-
-
-
-
-
-
- Vouchers Entries
- account.voucher
- form
- tree,form
-
- [('state','=','posted')]
- {'state':'posted', 'voucher_type': voucher_type}
-
-
-
-
-
diff --git a/addons/account_voucher/account_voucher_data.xml b/addons/account_voucher/data/account_voucher_data.xml
similarity index 100%
rename from addons/account_voucher/account_voucher_data.xml
rename to addons/account_voucher/data/account_voucher_data.xml
diff --git a/addons/account_voucher/models/__init__.py b/addons/account_voucher/models/__init__.py
new file mode 100644
index 00000000000..79c19ac7bd0
--- /dev/null
+++ b/addons/account_voucher/models/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+import account_voucher
\ No newline at end of file
diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/models/account_voucher.py
similarity index 100%
rename from addons/account_voucher/account_voucher.py
rename to addons/account_voucher/models/account_voucher.py
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/views/account_voucher_views.xml
similarity index 64%
rename from addons/account_voucher/voucher_sales_purchase_view.xml
rename to addons/account_voucher/views/account_voucher_views.xml
index c84b5f83081..2f4b5a37ec4 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/views/account_voucher_views.xml
@@ -1,6 +1,174 @@
+
+ account.voucher.tree
+ account.voucher
+
+
+
+
+
+
+
+
+
+
+
+
+
+ account.voucher.tree.supplier
+ account.voucher
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ account.voucher.kanban
+ account.voucher
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ account.voucher.line.form
+ account.voucher.line
+
+
+
+
+
+
+ account.voucher.line.tree
+ account.voucher.line
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ account.voucher.select
+ account.voucher
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ account.voucher.graph
+ account.voucher
+
+
+
+
+
+
+
+
+
+
+
+ Vouchers Entries
+ account.voucher
+ form
+ tree,form
+
+ [('state','=','posted')]
+ {'state':'posted', 'voucher_type': voucher_type}
+
+
+
account.voucher.purchase.select
account.voucher