[FIX] website_hr: restore employee publishing feature

Broken with https://github.com/odoo/odoo/commit/4ecbacaf59576a22ff45615a5aa5c67244e4fb93
This commit is contained in:
qsm-odoo
2017-11-28 09:59:13 +01:00
parent 0cb86017e2
commit d66997dd39
@@ -11,7 +11,7 @@
<xpath expr="//div[hasclass('oe_structure')]" position="after">
<section class="container" id="team">
<t t-set="is_publisher" t-value="request.env['res.users'].has_group('website.group_website_publisher')" />
<t t-set="employees_domain" t-value="is_publisher and [] or [('website_published', '=', True)]" />
<t t-set="employees_domain" t-value="[] if is_publisher else [('website_published', '=', True)]" />
<t t-set="employees" t-value="request.env['hr.employee'].search(employees_domain)" />
<div class="col-sm-12 text-center" t-if="len(employees)">
<h2>Our Team</h2>