summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-06-04 13:41:01 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-06-04 13:41:01 +0200
commit9ad00aec26d88322d8fc12547ebe26e0814e7eef (patch)
treea52f97be2dda1815a94c128a9b3adfaf6d6a5892
parent7e8fda694d93c03e92f746ddebe69a5112358cad (diff)
[ADD] a 'portal_jobs module', working with 'hr' and displaying jobs positions in the 'Our company' section of the portal
bzr revid: abo@openerp.com-20120604114101-b3jarrb5jzvzsymk
-rw-r--r--addons/portal/portal_view.xml2
-rw-r--r--addons/portal_jobs/__init__.py21
-rw-r--r--addons/portal_jobs/__openerp__.py42
-rw-r--r--addons/portal_jobs/portal_jobs_view.xml10
-rw-r--r--addons/portal_jobs/security/ir.model.access.csv2
5 files changed, 75 insertions, 2 deletions
diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml
index 5d21de5d738..13e60cdc00a 100644
--- a/addons/portal/portal_view.xml
+++ b/addons/portal/portal_view.xml
@@ -105,8 +105,6 @@ the portal's users.
<field name="parent_id" ref="portal_company"/>
<field name="sequence">10</field>
</record>
- <menuitem name="Jobs" id="portal_company_jobs"
- parent="portal_company" action="action_about" sequence="20"/>
<menuitem name="About" id="portal_company_about"
parent="portal_company" action="action_about" sequence="50"/>
<menuitem name="Orders" id="portal_orders"
diff --git a/addons/portal_jobs/__init__.py b/addons/portal_jobs/__init__.py
new file mode 100644
index 00000000000..26c654db9dd
--- /dev/null
+++ b/addons/portal_jobs/__init__.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
diff --git a/addons/portal_jobs/__openerp__.py b/addons/portal_jobs/__openerp__.py
new file mode 100644
index 00000000000..015e76d3d06
--- /dev/null
+++ b/addons/portal_jobs/__openerp__.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+ 'name': 'Portal Jobs',
+ 'version': '0.1',
+ 'category': 'Tools',
+ 'complexity': "easy",
+ 'description': """
+This module adds applications menu and features to your portal if hr and portal
+are installed.
+ """,
+ 'author': 'OpenERP SA',
+ 'depends': ['hr','portal'],
+ 'data': [
+ 'portal_jobs_view.xml',
+ 'security/ir.model.access.csv',
+ ],
+ 'installable': True,
+ 'auto_install':True,
+ 'category':'Hidden',
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/portal_jobs/portal_jobs_view.xml b/addons/portal_jobs/portal_jobs_view.xml
new file mode 100644
index 00000000000..30976fc1954
--- /dev/null
+++ b/addons/portal_jobs/portal_jobs_view.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+
+ <menuitem name="Jobs" id="portal_company_jobs"
+ parent="portal.portal_company" action="hr.action_hr_job"
+ sequence="20"/>
+
+ </data>
+</openerp>
diff --git a/addons/portal_jobs/security/ir.model.access.csv b/addons/portal_jobs/security/ir.model.access.csv
new file mode 100644
index 00000000000..5f33eb436e8
--- /dev/null
+++ b/addons/portal_jobs/security/ir.model.access.csv
@@ -0,0 +1,2 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_job,job,hr.model_hr_job,portal.group_portal_member,1,0,0,0