diff --git a/addons/portal/portal_data.xml b/addons/portal/portal_data.xml
index 5245c99eed2..58f2fc3e9d4 100644
--- a/addons/portal/portal_data.xml
+++ b/addons/portal/portal_data.xml
@@ -20,6 +20,18 @@
form
+
+
+ Company's jobs
+
+
+
+ Jobs
+ mail.group
+
+ form
+
+
+
Portal Form
@@ -47,6 +48,7 @@
+
Portals
@@ -57,7 +59,7 @@
{'form_view_ref': 'portal.portal_form_view'}
- Click to create a new portal.
+ Click to create a new portal.
A portal helps defining specific views and rules for a group of
users (the portal group). A portal menu, widgets and specific
@@ -65,6 +67,7 @@
+
diff --git a/addons/portal_hr_recruitment/__init__.py b/addons/portal_hr_recruitment/__init__.py
deleted file mode 100644
index 26c654db9dd..00000000000
--- a/addons/portal_hr_recruitment/__init__.py
+++ /dev/null
@@ -1,21 +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 .
-#
-##############################################################################
-
diff --git a/addons/portal_hr_recruitment/__openerp__.py b/addons/portal_hr_recruitment/__openerp__.py
deleted file mode 100644
index 0b7fb78b7f0..00000000000
--- a/addons/portal_hr_recruitment/__openerp__.py
+++ /dev/null
@@ -1,41 +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': 'Portal HR recruitment',
- 'version': '0.1',
- 'category': 'Tools',
- 'complexity': "easy",
- 'description': """
-This module adds a jobs page 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_hr_recruitment/portal_jobs_view.xml b/addons/portal_hr_recruitment/portal_jobs_view.xml
deleted file mode 100644
index e3e9cffb063..00000000000
--- a/addons/portal_hr_recruitment/portal_jobs_view.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/addons/portal_hr_recruitment/security/ir.model.access.csv b/addons/portal_hr_recruitment/security/ir.model.access.csv
deleted file mode 100644
index 0725d1e41eb..00000000000
--- a/addons/portal_hr_recruitment/security/ir.model.access.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-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
-access_hr_department_employee,hr_department_employee,hr.model_hr_department,portal.group_portal_member,1,0,0,0
diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml
index 690ceef076f..485792fdd8f 100644
--- a/addons/procurement/procurement_view.xml
+++ b/addons/procurement/procurement_view.xml
@@ -309,5 +309,18 @@
+
+ product.product.procurement
+ product.product
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/procurement/wizard/make_procurement_product.py b/addons/procurement/wizard/make_procurement_product.py
index 5e53824bcfd..5cf8e16257a 100644
--- a/addons/procurement/wizard/make_procurement_product.py
+++ b/addons/procurement/wizard/make_procurement_product.py
@@ -110,12 +110,24 @@ class make_procurement(osv.osv_memory):
"""
if context is None:
context = {}
- record_id = context and context.get('active_id', False) or False
+ record_id = context.get('active_id')
res = super(make_procurement, self).default_get(cr, uid, fields, context=context)
- product_id = self.pool.get('product.product').browse(cr, uid, record_id, context=context).id
- if 'product_id' in fields:
- res.update({'product_id':product_id})
+
+ if record_id and 'product_id' in fields:
+ proxy = self.pool.get('product.product')
+ product_ids = proxy.search(cr, uid, [('id', '=', record_id)], context=context, limit=1)
+ if product_ids:
+ product_id = product_ids[0]
+
+ product = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
+ res['product_id'] = product.id
+ res['uom_id'] = product.uom_id.id
+
+ if 'warehouse_id' in fields:
+ warehouse_id = self.pool.get('stock.warehouse').search(cr, uid, [], context=context)
+ res['warehouse_id'] = warehouse_id[0] if warehouse_id else False
+
return res
make_procurement()
diff --git a/addons/procurement/wizard/make_procurement_view.xml b/addons/procurement/wizard/make_procurement_view.xml
index 5e18892f464..5f2fc6ab40c 100644
--- a/addons/procurement/wizard/make_procurement_view.xml
+++ b/addons/procurement/wizard/make_procurement_view.xml
@@ -14,9 +14,9 @@
-
+
-
+