diff --git a/contract_sale/__manifest__.py b/contract_sale/__manifest__.py
index 230d83d9..acade46f 100644
--- a/contract_sale/__manifest__.py
+++ b/contract_sale/__manifest__.py
@@ -15,8 +15,9 @@
'data': [
'security/ir.model.access.csv',
'security/account_analytic_account_security.xml',
- 'views/account_analytic_account_view.xml',
- 'views/account_analytic_contract_view.xml',
+ 'views/contract.xml',
+ 'views/contract_line.xml',
+ 'views/contract_template.xml',
],
'license': 'AGPL-3',
'installable': True,
diff --git a/contract_sale/views/abstract_contract_line.xml b/contract_sale/views/abstract_contract_line.xml
new file mode 100644
index 00000000..4ebb43bc
--- /dev/null
+++ b/contract_sale/views/abstract_contract_line.xml
@@ -0,0 +1,18 @@
+
+
+
+
+ account.abstract.analytic.contract.line.form (in contract_sale)
+ account.abstract.analytic.contract.line
+
+
+
+ sale.group_discount_per_so_line
+
+
+
+
+
+
diff --git a/contract_sale/views/account_analytic_account_view.xml b/contract_sale/views/account_analytic_account_view.xml
deleted file mode 100644
index 5b08a3ad..00000000
--- a/contract_sale/views/account_analytic_account_view.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- Contract form (in contract_sale)
- account.analytic.account
-
-
-
-
- sale.group_discount_per_so_line
-
-
-
-
-
-
-
-
-
diff --git a/contract_sale/views/contract.xml b/contract_sale/views/contract.xml
new file mode 100644
index 00000000..04c2d13c
--- /dev/null
+++ b/contract_sale/views/contract.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
diff --git a/contract_sale/views/contract_line.xml b/contract_sale/views/contract_line.xml
new file mode 100644
index 00000000..05f8581d
--- /dev/null
+++ b/contract_sale/views/contract_line.xml
@@ -0,0 +1,18 @@
+
+
+
+
+ account.analytic.invoice.line.tree (in contract_sale)
+ account.analytic.invoice.line
+
+
+
+ sale.group_discount_per_so_line
+
+
+
+
+
+
diff --git a/contract_sale/views/account_analytic_contract_view.xml b/contract_sale/views/contract_template.xml
similarity index 100%
rename from contract_sale/views/account_analytic_contract_view.xml
rename to contract_sale/views/contract_template.xml