summaryrefslogtreecommitdiff
path: root/addons/website_hr_recruitment/models
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-11-14 11:20:33 +0100
committerChristophe Matthieu <chm@openerp.com>2013-11-14 11:20:33 +0100
commit3ef7c80aa62ed126db7b37d8435cb38718a7a975 (patch)
tree6f5cbed0aeb082776e7654afd1cd21e7f8a3325e /addons/website_hr_recruitment/models
parent427c6915cf65a1763fa53bd80091360b8650adb7 (diff)
[WIP] website: remove contraints with many2one to res.partner field. The website field must use a contact/address widget without force user to publish the partner
bzr revid: chm@openerp.com-20131114102033-dfmv019mmqow0ebt
Diffstat (limited to 'addons/website_hr_recruitment/models')
-rw-r--r--addons/website_hr_recruitment/models/hr_job.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/website_hr_recruitment/models/hr_job.py b/addons/website_hr_recruitment/models/hr_job.py
index 8c341467354..54d5f20c925 100644
--- a/addons/website_hr_recruitment/models/hr_job.py
+++ b/addons/website_hr_recruitment/models/hr_job.py
@@ -9,13 +9,4 @@ class hr_job(osv.osv):
_columns = {
'website_published': fields.boolean('Available in the website'),
'website_description': fields.html('Description for the website'),
- }
-
- def _check_address_id_published(self, cr, uid, ids, context=None):
- for obj in self.browse(cr, uid, ids, context=context):
- if obj.website_published and obj.address_id and not obj.address_id.website_published:
- return False
- return True
- _constraints = [
- (_check_address_id_published, "This Jobpost can't be published if the field Job Location is not website published.", ['address_id','website_published']),
- ] \ No newline at end of file
+ } \ No newline at end of file