About us
A passion for great products
diff --git a/addons/website_hr/controllers/main.py b/addons/website_hr/controllers/main.py
index 89b1658ce04..c387b2e5c07 100644
--- a/addons/website_hr/controllers/main.py
+++ b/addons/website_hr/controllers/main.py
@@ -9,7 +9,7 @@ class website_hr(http.Controller):
@website.route(['/page/website.aboutus'], type='http', auth="public", multilang=True)
def blog(self, **post):
hr_obj = request.registry['hr.employee']
- employee_ids = hr_obj.search(request.cr, request.uid, [(1, "=", 1)],
+ employee_ids = hr_obj.search(request.cr, request.uid, [('website_published', '=', True)],
context=request.context)
values = {
'employee_ids': hr_obj.browse(request.cr, request.uid, employee_ids,
diff --git a/addons/website_hr/hr.py b/addons/website_hr/hr.py
index 169d430e2f6..3de714f7530 100644
--- a/addons/website_hr/hr.py
+++ b/addons/website_hr/hr.py
@@ -11,4 +11,4 @@ class hr(osv.osv):
}
def img(self, cr, uid, ids, field='image_small', context=None):
- return "/website/image?model=%s&field=%s&id=%s" % (self._name, field, ids[0])
+ return "/web/binary/image?model=%s&field=%s&id=%s" % (self._name, field, ids[0])
diff --git a/addons/website_hr/static/src/css/website_hr.css b/addons/website_hr/static/src/css/website_hr.css
new file mode 100644
index 00000000000..02b28ab2908
--- /dev/null
+++ b/addons/website_hr/static/src/css/website_hr.css
@@ -0,0 +1,4 @@
+.col-wrap .colsize {
+ height: 300px;
+}
+
diff --git a/addons/website_hr/views/website_hr.xml b/addons/website_hr/views/website_hr.xml
index 3e3368d7af0..de8012e9ba9 100644
--- a/addons/website_hr/views/website_hr.xml
+++ b/addons/website_hr/views/website_hr.xml
@@ -22,29 +22,24 @@
-
+
+
-
-
Our team
+
+
+
Our Team
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
![]()
+
+
+
+