From b0699326710656a0ca16643c60f3cac2b000514b Mon Sep 17 00:00:00 2001
From: Antony Lesuisse
Date: Thu, 14 Feb 2013 20:56:45 +0100
Subject: [PATCH] reorder and document contract views in one clear file.
bzr revid: al@openerp.com-20130214195645-oia0msv4fz1h14zx
---
.../account_analytic_analysis/__openerp__.py | 1 -
.../account_analytic_analysis_menu.xml | 114 --------------
.../account_analytic_analysis_view.xml | 146 +++++++++++++++---
3 files changed, 127 insertions(+), 134 deletions(-)
delete mode 100644 addons/account_analytic_analysis/account_analytic_analysis_menu.xml
diff --git a/addons/account_analytic_analysis/__openerp__.py b/addons/account_analytic_analysis/__openerp__.py
index 5ff15c09076..99e4353afa1 100644
--- a/addons/account_analytic_analysis/__openerp__.py
+++ b/addons/account_analytic_analysis/__openerp__.py
@@ -38,7 +38,6 @@ Adds menu to show relevant information to each manager.You can also view the rep
'security/ir.model.access.csv',
'security/account_analytic_analysis_security.xml',
'account_analytic_analysis_view.xml',
- 'account_analytic_analysis_menu.xml',
'account_analytic_analysis_cron.xml',
'res_config_view.xml',
],
diff --git a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml b/addons/account_analytic_analysis/account_analytic_analysis_menu.xml
deleted file mode 100644
index 32a9d489453..00000000000
--- a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
- Time & Materials to Invoice
- account.analytic.line
- form
- tree,form
- [('invoice_id','=',False)]
- {'search_default_to_invoice': 1, 'search_default_sales': 1}
-
-
-
- You will find here timesheets and purchases you did for
- contracts that can be reinvoiced to the customer. If you want
- to record new activities to invoice, you should use the timesheet
- menu instead.
-
-
-
-
-
-
- account.analytic.account.search
- account.analytic.account
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Contracts to Renew
- account.analytic.account
- form
- tree,form
- {'search_default_manager_id':uid, 'search_default_pending':1, 'search_default_renew':1}
- [('type','=','contract')]
-
-
-
- Click to define a new contract.
-
- You will find here the contracts to be renewed because the
- end date is passed or the working effort is higher than the
- maximum authorized one.
-
- OpenERP automatically sets contracts to be renewed in a pending
- state. After the negociation, the salesman should close or renew
- pending contracts.
-
-
-
-
-
-
- Contracts
- account.analytic.account
- form
- tree,form
- {'default_type':'contract', 'search_default_open':1, 'search_default_pending':1, 'default_manager_id':uid}
- [('type','=','contract')]
-
-
-
- Click to create a new contract.
-
- Use contracts to follow tasks, issues, timesheets or invoicing based on
- work done, expenses and/or sales orders. OpenERP will automatically manage
- the alerts for the renewal of the contracts to the right salesperson.
-
-
-
-
-
-
-
-
-
diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml
index f8f718882af..dfbded83baa 100644
--- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml
+++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml
@@ -1,17 +1,13 @@
-
-
-
Sales Orders
sale.order
account.analytic.account
+
account.analytic.account.invoice.form.inherit
account.analytic.account
@@ -142,19 +138,7 @@
-
- account.analytic.account.tree
- account.analytic.account
-
-
-
-
-
-
-
-
-
-
+
account.analytic.account.form.template.required
account.analytic.account
@@ -167,6 +151,130 @@
+
+
+ account.analytic.account.list.contract
+ account.analytic.account
+
+
+
+
+
+
+
+
+
+
+
+
+ account.analytic.account.search
+ account.analytic.account
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Contracts
+ account.analytic.account
+ form
+ tree,form
+ {'default_type':'contract', 'search_default_open':1, 'search_default_pending':1, 'default_manager_id':uid}
+ [('type','=','contract')]
+
+
+
+ Click to create a new contract.
+
+ Use contracts to follow tasks, issues, timesheets or invoicing based on
+ work done, expenses and/or sales orders. OpenERP will automatically manage
+ the alerts for the renewal of the contracts to the right salesperson.
+
+
+
+
+
+
+
+
+ Time & Materials to Invoice
+ account.analytic.line
+ form
+ tree,form
+ [('invoice_id','=',False)]
+ {'search_default_to_invoice': 1, 'search_default_sales': 1}
+
+
+
+ You will find here timesheets and purchases you did for
+ contracts that can be reinvoiced to the customer. If you want
+ to record new activities to invoice, you should use the timesheet
+ menu instead.
+
+
+
+
+
+
+
+
+ Contracts to Renew
+ account.analytic.account
+ form
+ tree,form
+ {'search_default_manager_id':uid, 'search_default_pending':1, 'search_default_renew':1}
+ [('type','=','contract')]
+
+
+
+ Click to define a new contract.
+
+ You will find here the contracts to be renewed because the
+ end date is passed or the working effort is higher than the
+ maximum authorized one.
+
+ OpenERP automatically sets contracts to be renewed in a pending
+ state. After the negociation, the salesman should close or renew
+ pending contracts.
+
+
+
+
+
+
Contract Template
ir.actions.act_window
@@ -184,8 +292,8 @@
terms and conditions of the contract.
-
+