diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py
index 70a99adc18e..ce6341cc9b2 100644
--- a/addons/account/account_analytic_line.py
+++ b/addons/account/account_analytic_line.py
@@ -160,5 +160,17 @@ class timesheet_invoice(osv.osv):
)""")
timesheet_invoice()
+
+class res_partner(osv.osv):
+ """ Inherits partner and adds contract information in the partner form """
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'contract_ids': fields.one2many('account.analytic.account', \
+ 'partner_id', 'Contracts'),
+ }
+
+res_partner()
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 5ef07f6c88b..16e3cc656cd 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -478,6 +478,23 @@
+
+
+
+ res.partner.invoice.info.inherit
+ res.partner
+ form
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index 14cd952aa69..63cfc2d4071 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -1496,4 +1496,15 @@ class account_invoice_tax(osv.osv):
return res
account_invoice_tax()
+
+class res_partner(osv.osv):
+ """ Inherits partner and adds invoice information in the partner form """
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices'),
+ }
+
+res_partner()
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index a97be959cd1..71e57cb82e2 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -441,6 +441,21 @@
+
+
+
+
+ res.partner.contract.info.inherit
+ res.partner
+ form
+
+
+
+
+
+
+
+
diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py
index 30baebaec53..67af5bfff16 100644
--- a/addons/crm/crm_meeting.py
+++ b/addons/crm/crm_meeting.py
@@ -157,4 +157,16 @@ class calendar_attendee(osv.osv):
calendar_attendee()
+class res_partner(osv.osv):
+ """ Inherits partner and adds meetings information in the partner form """
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'meeting_ids': fields.one2many('crm.meeting', 'partner_id',\
+ 'Meetings'),
+ }
+
+res_partner()
+
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml
index 3286936b8a0..6712ffe23ce 100644
--- a/addons/crm/crm_meeting_view.xml
+++ b/addons/crm/crm_meeting_view.xml
@@ -324,5 +324,22 @@
+
+
+
+
+ res.partner.meeting.info.inherit
+ res.partner
+ form
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/crm/crm_opportunity.py b/addons/crm/crm_opportunity.py
index 22eb2e62d0d..308954c297d 100644
--- a/addons/crm/crm_opportunity.py
+++ b/addons/crm/crm_opportunity.py
@@ -166,4 +166,16 @@ class crm_opportunity(osv.osv):
crm_opportunity()
+class res_partner(osv.osv):
+ """ Inherits partner and adds Opportunities information in the partner form """
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'opportunity_ids': fields.one2many('crm.lead', 'partner_id',\
+ 'Opportunities', domain=[('type', '=', 'opportunity')]),
+ }
+
+res_partner()
+
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml
index edf10eaae18..7594eb09361 100644
--- a/addons/crm/crm_opportunity_view.xml
+++ b/addons/crm/crm_opportunity_view.xml
@@ -328,5 +328,60 @@
+
+
+
+
+ res.partner.opportunity.info.inherit
+ res.partner
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py
index 96232677cc0..6244ba1807a 100644
--- a/addons/crm/crm_phonecall.py
+++ b/addons/crm/crm_phonecall.py
@@ -175,4 +175,15 @@ class crm_phonecall(osv.osv, crm_case):
crm_phonecall()
+class res_partner(osv.osv):
+ """ Inherits partner and adds Phonecalls information in the partner form """
+ _inherit = 'res.partner'
+
+ _columns = {
+ 'phonecall_ids': fields.one2many('crm.phonecall', 'partner_id', 'Phonecalls'),
+ }
+
+res_partner()
+
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index e11ef95e442..3bfa284b017 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -291,5 +291,20 @@
+
+
+
+
+ res.partner.phonecall.info.inherit
+ res.partner
+ form
+
+
+
+
+
+
+
+
diff --git a/addons/partner_infotab/__init__.py b/addons/partner_infotab/__init__.py
deleted file mode 100644
index a0a034ec9c5..00000000000
--- a/addons/partner_infotab/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-import partner_infotab
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_infotab/__openerp__.py b/addons/partner_infotab/__openerp__.py
deleted file mode 100644
index db44ac70762..00000000000
--- a/addons/partner_infotab/__openerp__.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-
-{
- 'name': 'Detailed information on partner form',
- 'version': '1.0',
- 'category': 'Generic Modules/Base',
- 'description': """
-This module allows a salesman to have a direct overlook at all events related to this partner directly from the partner form.
-
-It adds the following fields on the partner form:
-
- * Opportunities
- * Meetings
- * Phone Calls
- * Invoices
- - group by product_id
- * Contracts
- * Timesheets
-
- """,
- 'author': 'Tiny',
- 'website': 'http://www.openerp.com',
- 'depends': ['crm', 'account_analytic_analysis'],
- 'init_xml': [],
- 'update_xml': [
- 'security/ir.model.access.csv',
- 'partner_infotab_view.xml'
- ],
- 'demo_xml': [],
- 'installable': True,
- 'active': False,
-}
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/partner_infotab/partner_infotab.py b/addons/partner_infotab/partner_infotab.py
deleted file mode 100644
index a66e901e9c2..00000000000
--- a/addons/partner_infotab/partner_infotab.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from osv import osv, fields
-
-class res_partner(osv.osv):
- """ Inherits partner and adds more information in the partner form """
- _inherit = 'res.partner'
-
- _columns = {
- 'opportunity_ids': fields.one2many('crm.lead', 'partner_id', 'Opportunities', domain=[('type', '=', 'opportunity')]),
- 'meeting_ids': fields.one2many('crm.meeting', 'partner_id',\
- 'Meetings'),
- 'phonecall_ids': fields.one2many('crm.phonecall', 'partner_id', 'Phonecalls'),
- 'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices'),
- 'contract_ids': fields.one2many('account.analytic.account', \
- 'partner_id', 'Contracts'),
- 'account_line_ids': fields.one2many('hr.analytic.timesheet', \
- 'partner_id', 'Anaylitic account lines '),
- }
-
-res_partner()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/partner_infotab/partner_infotab_view.xml b/addons/partner_infotab/partner_infotab_view.xml
deleted file mode 100644
index 8aabbb242e9..00000000000
--- a/addons/partner_infotab/partner_infotab_view.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
- res.partner.form.info.inherit
- res.partner
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/partner_infotab/security/ir.model.access.csv b/addons/partner_infotab/security/ir.model.access.csv
deleted file mode 100644
index 1ebd2924293..00000000000
--- a/addons/partner_infotab/security/ir.model.access.csv
+++ /dev/null
@@ -1,9 +0,0 @@
-"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_crm_meeting_partner_manager","crm.meeting","crm.model_crm_meeting","base.group_partner_manager",1,0,0,0
-"access_crm_meeting_user","crm.meeting","crm.model_crm_meeting","base.group_user",1,0,0,0
-"access_crm_phonecall_partner_manager","crm.phonecall","crm.model_crm_phonecall","base.group_partner_manager",1,0,0,0
-"access_crm_phonecall_user","crm.phonecall","crm.model_crm_phonecall","base.group_user",1,0,0,0
-"access_invoice_partner_manager","account.invoice","account.model_account_invoice","base.group_partner_manager",1,0,0,0
-"access_invoice_user","account.invoice","account.model_account_invoice","base.group_user",1,0,0,0
-"access_analytic_account_partner_manager","account.analytic.account","account_analytic_analysis.model_account_analytic_account","base.group_partner_manager",1,0,0,0
-"access_analytic_account_user","account.analytic.account","account_analytic_analysis.model_account_analytic_account","base.group_user",1,0,0,0