diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 5e6953a29d2..ee160276e01 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -59,7 +59,7 @@
-
+
@@ -207,7 +207,7 @@
form
-
+
@@ -410,8 +410,8 @@
-
-
+
hr.job.employee.form
hr.job
@@ -444,7 +444,7 @@
-
+
Job Positions
hr.job
diff --git a/addons/portal_crm/__init__.py b/addons/portal_crm/__init__.py
index 6b791be9f25..4ea069fcbd8 100644
--- a/addons/portal_crm/__init__.py
+++ b/addons/portal_crm/__init__.py
@@ -20,3 +20,4 @@
##############################################################################
import wizard
+import hr_employee
\ No newline at end of file
diff --git a/addons/portal_crm/__openerp__.py b/addons/portal_crm/__openerp__.py
index 55320cb0a40..3f4a24adfed 100644
--- a/addons/portal_crm/__openerp__.py
+++ b/addons/portal_crm/__openerp__.py
@@ -32,6 +32,7 @@ portal are installed.
'author': 'OpenERP SA',
'depends': ['crm','portal'],
'data': [
+ 'hr_employee_view.xml',
'security/ir.model.access.csv',
'wizard/contact_view.xml',
],
diff --git a/addons/portal_crm/hr_employee.py b/addons/portal_crm/hr_employee.py
new file mode 100644
index 00000000000..b4db10deb6c
--- /dev/null
+++ b/addons/portal_crm/hr_employee.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2011 OpenERP S.A ().
+#
+# 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 hr_employee(osv.osv):
+ _description = "Portal CRM Employee"
+ _inherit = 'hr.employee'
+
+ """
+ ``visibility``: defines if the employee appears on the portal's contact page
+ - 'public' means the employee will appear for everyone (anonymous)
+ - 'portal' means the employee will appear for portal users only
+ - 'private' means the employee won't appear
+ """
+ _columns = {
+ 'visibility': fields.selection([('public', 'Public'),('portal', 'Portal'),('private', 'Private')],
+ string='Visibility', help='Employee\'s visibility in the portal\'s contact page'),
+ }
+ _defaults = {
+ 'visibility': 'private',
+ }
diff --git a/addons/portal_crm/hr_employee_view.xml b/addons/portal_crm/hr_employee_view.xml
new file mode 100644
index 00000000000..0bfb86284fc
--- /dev/null
+++ b/addons/portal_crm/hr_employee_view.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ res.portal.employee.form
+ hr.employee
+ form
+
+
+
+
+
+
+
+
+
+
+