e088762a21
- Affected Modules: website_sale, website_blog, website_partner, website_crm_partner_assign, website_customer, website_slides, website_links, website_membership, website_hr, website_hr_recruitment, website_payment, website_sale_delivery, website_forum, website_event - Remove unnecessary model `website.product.pricelist` from website_sale, All its mechanism already transferd to existing model `product.pricelist` - Change in `product.pricelist` model, make website_id(o2m) to website_ids(m2m), As user can choose that same pricelist can be used in multiple websites - Added `default_website` as default values in `website_ids(m2m)` & `website_id(m2o)` field in almost all affected modules (mentioned above!!) - To use/publish things(like... product, pricelist, blog, forum, events, etc...) in website, User have to set `website_published` mechanism `on` (if it's available for that model/object), Also have to set/assign different websites in `website_ids` field as per needs
39 lines
2.0 KiB
XML
39 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<!-- Page -->
|
|
<template id="assets_frontend" inherit_id="website.assets_frontend" name="website_hr_assets">
|
|
<xpath expr="." position="inside">
|
|
<link rel='stylesheet' type="text/less" href='/website_hr/static/src/less/website_hr.less'/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="aboutus" inherit_id="website.aboutus" customize_show="True" name="Our Team">
|
|
<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="[] if is_publisher else [('website_published', '=', True), ('website_ids', 'in', website)]" />
|
|
<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>
|
|
</div>
|
|
<div t-foreach="employees" t-as="employee" class="col-sm-3 col-lg-2 mt16 text-center o_avatar_info_container">
|
|
<t t-call="website.publish_management" class="text-center">
|
|
<t t-set="object" t-value="employee"/>
|
|
<t t-set="publish_edit" t-value="True"/>
|
|
</t>
|
|
<div class="clearfix"/>
|
|
<div class="emp" t-att-data-publish="employee.website_published and website in employee.website_ids and 'on' or 'off'}">
|
|
<img t-att-src="website.image_url(employee, 'image_medium')" class="img shadow img-rounded"/>
|
|
<div class="mt8">
|
|
<strong t-field="employee.name"></strong>
|
|
</div>
|
|
<div t-field="employee.job_id"/>
|
|
<div t-field="employee.public_info" class="text-muted mt16 center-block"/>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</xpath>
|
|
</template>
|
|
|
|
</flectra>
|