[IMP] portal, website, website_*: make footer content easy to customize

Previously, customizing the website footer was not very easy. This
commit will allow users to customize the footer like any other
snippet area.

There are several behavior changes, as mentioned below:

- Removed toggles 'Automatic Footer' and 'Payment Icons' from the
  Customize menu
- Language Selector was moved near the 'Copyright' section of the footer
  and features a dropdown (dropup technically) to select the language
- Moved some footer links from various modules to top menu
  List of the added menus / changed menus:
    (a) Resellers (new menu for previous footer link 'Resellers')
    (b) References (new menu for previous footer link 'Our References')
    (c) Forums (renamed from 'Forum', as a replacement of 'Forums'
        footer link, showing all the forums instead of 'Help', as there
        is no link available to all forums after this commit)
    (d) Live Support (new menu for previous footer link
        'Livechat Support')
    (e) Mailing Lists (new menu for previous footer link 'Mailing List')
    (f) Members (new menu for previous footer link 'Members')
- Links which were already available as a website menus (Presentations,
  Jobs, Events, News, Documentation, etc) are simply removed

Technical Notes:

- Introduced a new template called 'brand_promotion' in website.
  This will help to avoid adding redundant footer content (like
  copyright, language selector etc) from several modules (website_sale,
  website_event, website_quote, etc) while the only intention is to
  replace module page links.
- Removed summernote related fix in portal.less (caused by xpath)
  because footer is now customizable and added padding to structure
  instead of footer itself so that bg-color/img can be applied on
  whole footer.
- Few of the tours are improved to drag and drop snippets at proper
  places and not inside the footer.
- Used Flex in copyright portion of footer, so that text will always be
  horizontally centered (Some themes have different padding for buttons,
  etc, so if we don't align text dynamically, it has to be managed in
  particular theme and in particular layouts like full-screen / boxed.
  And if someone changes height of this portion, we have to re-design
  this portion again, etc).

task-38069
Closes https://github.com/odoo/odoo/pull/22298

Co-authored-by: Dharmraj <dja@odoo.com>
This commit is contained in:
Nirali Sapra
2018-05-29 11:13:28 +02:00
committed by qsm-odoo
co-authored by Dharmraj
parent a01f7b0e0b
commit b2fefbd3c5
32 changed files with 178 additions and 242 deletions
-12
View File
@@ -61,18 +61,6 @@ ul.nav-stacked > li > a {
footer {
background-color: #F8F8F8;
#footer {
padding-top: 32px;
// TODO This solves a bug that should be solved differently when
// possible. When automatic footer option is enabled, <ul/> become non
// editable because of <xpath/>. So adding a link does not duplicate the
// <li/> elements but the <a/> elements.
ul.list-unstyled > li > a {
display: block;
}
}
}
// Odoo options classes
+2 -2
View File
@@ -19,7 +19,7 @@ tour.register("banner", {
trigger: "#snippet_structure .oe_snippet:eq(1) .oe_snippet_thumbnail",
content: _t("Drag the <i>Cover</i> block and drop it in your page."),
position: "bottom",
run: "drag_and_drop",
run: "drag_and_drop #wrap",
}, {
trigger: "#wrapwrap .s_text_block_image_fw h2",
content: _t("<b>Click on a text</b> to start editing it. <i>It's that easy to edit your content!</i>"),
@@ -35,7 +35,7 @@ tour.register("banner", {
trigger: "#snippet_structure .oe_snippet:eq(3) .oe_snippet_thumbnail",
content: _t("Drag another block in your page, below the cover."),
position: "bottom",
run: "drag_and_drop",
run: "drag_and_drop #wrap",
}, {
trigger: "button[data-action=save]",
extra_trigger: ".oe_overlay_options .oe_options",
+19 -2
View File
@@ -18,11 +18,14 @@ tour.register('rte_translator', {
content: "load french",
trigger: '.modal-footer button:first',
extra_trigger: '.modal select[name="lang"]:propValueContains(fr_BE)',
}, {
content : "click language dropdown",
trigger : '.js_language_selector .dropdown-toggle',
timeout: 60000,
}, {
content: "go to english version",
trigger: '.js_language_selector a[data-lang="en_US"]',
extra_trigger: 'html[lang*="fr"]',
timeout: 60000,
}, {
content: "Open new page menu",
trigger: '#new-content-menu > a',
@@ -41,7 +44,7 @@ tour.register('rte_translator', {
}, {
content: "drop a snippet",
trigger: "#snippet_structure .oe_snippet:eq(1) .oe_snippet_thumbnail",
run: 'drag_and_drop',
run: 'drag_and_drop #wrap',
}, {
content: "change content",
trigger: '.oe_overlay_options .oe_options:visible',
@@ -56,6 +59,10 @@ tour.register('rte_translator', {
content: "save",
trigger: 'button[data-action=save]',
extra_trigger: '#wrap p:first b',
}, {
content : "click language dropdown",
trigger : '.js_language_selector .dropdown-toggle',
}, {
content: "click on french version",
trigger: '.js_language_selector a[data-lang="fr_BE"]',
@@ -112,6 +119,11 @@ tour.register('rte_translator', {
content: "check: placeholder translation",
trigger: 'input[placeholder="test french placeholder"]',
run: function () {}, // it's a check
}, {
content : "click language dropdown",
trigger : '.js_language_selector .dropdown-toggle',
}, {
content: "return to english version",
trigger: '.js_language_selector a[data-lang="en_US"]',
@@ -139,6 +151,11 @@ tour.register('rte_translator', {
content: "save new change",
trigger: 'button[data-action=save]',
extra_trigger: '#wrap p u',
}, {
content : "click language dropdown",
trigger : '.js_language_selector .dropdown-toggle',
}, {
content: "return in french",
trigger: 'html[lang="en-US"] .js_language_selector a[data-lang="fr_BE"]',
@@ -540,3 +540,19 @@ div.carousel {
}
}
}
// COPYRIGHT
.o_footer_copyright {
padding: 8px;
.js_language_selector {
display: inline-block;
}
@media (min-width: $screen-sm-min) {
.row {
@include o-flex-display;
> div {
margin: auto 0;
}
}
}
}
+64 -80
View File
@@ -210,18 +210,27 @@
<template id="layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Create a <a target="_blank" href="http://www.odoo.com/page/website-builder">free website</a> with
<a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
</div>
<div class="pull-left text-muted" itemscope="itemscope" itemtype="http://schema.org/Organization">
Copyright &amp;copy; <span t-field="res_company.name" itemprop="name">Company name</span>
<div class="container o_footer_copyright">
<div class="row">
<div class="col-md-6 text-muted text-center-xs">
<span>Copyright &amp;copy;</span> <span t-field="res_company.name" itemprop="name">Company name</span>
<t t-call="website.language_selector"/>
</div>
<div class="col-md-6 text-right o_not_editable" t-if="not editable">
<t t-call="website.brand_promotion"/>
</div>
</div>
</div>
</xpath>
</template>
<template id="brand_promotion" name="Brand Promotion">
<div class="o_brand_promotion">
Create a <a target="_blank" href="http://www.odoo.com/page/website-builder">free website</a> with
<a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
</div>
</template>
<template id="layout_logo_show" inherit_id="website.layout" customize_show="True" name="Show Logo">
<xpath expr="//header//a[hasclass('navbar-brand')]" position="replace">
<a href="/" class="navbar-brand logo">
@@ -257,26 +266,45 @@
<template id="footer_custom" inherit_id="website.layout" name="Footer">
<xpath expr="//div[@id='footer']" position="replace">
<div class="oe_structure" id="footer" t-if='not no_footer'>
<section>
<div id="footer" class="oe_structure" t-ignore="true" t-if="not no_footer">
<section class="s_text_block pt16 pb8">
<div class="container">
<div class="row">
<div class="col-md-4">
<h4 class="mt16">Subtitle</h4>
<p>
<a href="/">Homepage</a>
</p>
<h4>Our Products &amp; Services</h4>
<ul class="list-unstyled">
<li><a href="/">Home</a></li>
</ul>
</div>
<div class="col-md-4">
<h4 class="mt16">Subtitle 2</h4>
<p>
...
</p>
<h4>Connect with us</h4>
<ul class="list-unstyled">
<li><a href="/contactus">Contact us</a></li>
<li><i class="fa fa-phone"/> <span t-field="res_company.phone"/></li>
<li><i class="fa fa-envelope"/> <span t-field="res_company.email"/></li>
</ul>
<div class="btn-group">
<a t-if="website.social_facebook" t-att-href="website.social_facebook" class="btn btn-xs btn-link"><i class="fa fa-2x fa-facebook-square"/></a>
<a t-if="website.social_twitter" t-att-href="website.social_twitter" class="btn btn-xs btn-link"><i class="fa fa-2x fa-twitter"/></a>
<a t-if="website.social_linkedin" t-att-href="website.social_linkedin" class="btn btn-xs btn-link"><i class="fa fa-2x fa-linkedin"/></a>
<a t-if="website.social_youtube" t-att-href="website.social_youtube" class="btn btn-xs btn-link"><i class="fa fa-2x fa-youtube-play"/></a>
<a t-if="website.social_googleplus" t-att-href="website.social_googleplus" class="btn btn-xs btn-link" rel="publisher"><i class="fa fa-2x fa-google-plus-square"/></a>
<a t-if="website.social_github" t-att-href="website.social_github" class="btn btn-xs btn-link"><i class="fa fa-2x fa-github"/></a>
</div>
</div>
<div class="col-md-4">
<h4 class="mt16">Subtitle 3</h4>
<h4>
<span t-field="res_company.name"/>
<small> - <a href="/aboutus">About us</a></small>
</h4>
<p>
...
We are a team of passionate people whose goal is to improve everyone's
life through disruptive products. We build great products to solve your
business problems.
</p>
<p>
Our products are designed for small to medium size companies willing to optimize
their performance.
</p>
</div>
</div>
@@ -287,16 +315,23 @@
</template>
<template id="language_selector">
<ul class="list-inline js_language_selector mt16" t-if="(request and request.is_frontend_multilang and len(languages) &gt; 1) or (website and (editable or translatable))">
<li t-foreach="languages" t-as="lg">
<a
t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])"
t-att-data-default-lang="(editable or translatable) and 'true' if website and lg[0] == website.default_lang_code else None"
t-att-data-lang="lg[0]"
class="js_change_lang"
>
<t t-esc="lg[1].split('/').pop()"/>
</a>
<ul class="js_language_selector mb0 list-inline" t-if="(request and request.is_frontend_multilang and len(languages) &gt; 1) or (website and (editable or translatable))">
<li>
<div class="dropup">
<button class="btn btn-sm btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span t-esc="list(filter(lambda lg : lg[0] == lang, languages))[0][1].split('/').pop()"/>
<span class="caret ml4"/>
</button>
<ul class="dropdown-menu" role="menu">
<li t-foreach="languages" t-as="lg">
<a t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])"
t-att-data-default-lang="(editable or translatable) and 'true' if website and lg[0] == website.default_lang_code else None"
t-att-data-lang="lg[0]" class="js_change_lang">
<t t-esc="lg[1].split('/').pop()"/>
</a>
</li>
</ul>
</div>
</li>
<li groups="website.group_website_publisher">
<t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
@@ -308,57 +343,6 @@
</ul>
</template>
<template id="footer_default" inherit_id="website.footer_custom" customize_show="True" name="Automatic Footer">
<xpath expr="//div[@id='footer']" position="replace" >
<div id="footer" class="container hidden-print" t-if='not no_footer'>
<div class="row">
<div class="col-md-4 col-lg-3">
<h4>Our Products &amp; Services</h4>
<ul class="list-unstyled" id="products">
<li><a href="/">Home</a></li>
</ul>
</div>
<div class="col-md-4 col-lg-3" id="info">
<h4>Connect with us</h4>
<ul class="list-unstyled">
<li><a href="/contactus">Contact us</a></li>
</ul>
<ul class="list-unstyled">
<li t-ignore="true"><i class="fa fa-phone"></i> <span t-field="res_company.phone"></span></li>
<li t-ignore="true"><i class="fa fa-envelope"></i> <span t-field="res_company.email"></span></li>
</ul>
<h2>
<a t-att-href="website.social_facebook" t-if="website.social_facebook"><i class="fa fa-facebook-square"/></a>
<a t-att-href="website.social_twitter" t-if="website.social_twitter"><i class="fa fa-twitter"/></a>
<a t-att-href="website.social_linkedin" t-if="website.social_linkedin"><i class="fa fa-linkedin"/></a>
<a t-att-href="website.social_youtube" t-if="website.social_youtube"><i class="fa fa-youtube-play"/></a>
<a t-att-href="website.social_googleplus" t-if="website.social_googleplus" rel="publisher"><i class="fa fa-google-plus-square"/></a>
<a t-att-href="website.social_github" t-if="website.social_github"><i class="fa fa-github"/></a>
</h2>
</div>
<div class="col-md-4 col-lg-5 col-lg-offset-1">
<h4>
<span t-field="res_company.name" />
<small> - <a href="/aboutus">About us</a></small>
</h4>
<div>
<p>
We are a team of passionate people whose goal is to improve everyone's
life through disruptive products. We build great products to solve your
business problems.
</p>
<p>
Our products are designed for small to medium size companies willing to optimize
their performance.
</p>
</div>
<t t-call="website.language_selector"/>
</div>
</div>
</div>
</xpath>
</template>
<!-- Util template -->
<template id="publish_management">
<div groups="website.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or None">
@@ -17,13 +17,6 @@
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default" name="Footer News Blog Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a t-attf-href="/blog/%(website_blog.blog_blog_1)d">News</a></li>
</xpath>
</template>
<!-- Overview of all blog posts -->
<template id="latest_blogs" name="Latest Blogs">
<t t-call="website.layout">
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="crm.lead.tag" id="tag_portal_lead_partner_unavailable">
<field name="name">No more partner available</field>
<field name="color">3</field>
@@ -50,4 +51,15 @@ PS: It looks like you do not have an account manager assigned to you, please con
% endif
]]></field>
</record>
</data>
<data noupdate="1">
<record id="menu_resellers" model="website.menu">
<field name="name">Resellers</field>
<field name="url">/partners</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence">55</field>
</record>
</data>
</odoo>
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Layout add nav and footer -->
<template id="footer_custom" inherit_id="website.footer_default" name="Footer Partners Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a href="/partners">Resellers</a></li>
</xpath>
</template>
<!-- Page -->
<template id="layout" name="Partners Layout">
<t t-call="website.layout">
+1
View File
@@ -20,6 +20,7 @@ Odoo Customer References
'data/res_partner_demo.xml',
],
'data': [
'data/website_customer_data.xml',
'views/website_customer_templates.xml',
'views/res_partner_views.xml',
'security/ir.model.access.csv',
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="menu_customers" model="website.menu">
<field name="name">References</field>
<field name="url">/customers</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence">55</field>
</record>
</data>
</odoo>
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Layout add nav and footer -->
<template id="footer_custom" inherit_id="website.footer_default" name="Footer Customer References Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a href="/customers">Our References</a></li>
</xpath>
</template>
<template id="index" name="Our References">
<t t-call="website.layout">
<div id="wrap">
+5 -17
View File
@@ -15,13 +15,6 @@
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default" name="Footer Events Link">
<xpath expr="//ul[@id='products']" position="inside">
<li><a href="/event">Events</a></li>
</xpath>
</template>
<!-- Page -->
<template id="index" name="Events">
<t t-call="website.layout">
@@ -713,18 +706,13 @@
</t>
</template>
<template id="website.layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
<template id="website_event.brand_promotion" inherit_id="website.brand_promotion">
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
<div class="o_brand_promotion">
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>.
Try the <a target="_blank" href="http://www.odoo.com/page/website-builder">open source website builder</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
</div>
</div>
</xpath>
</div>
</xpath>
</template>
+3 -3
View File
@@ -5,9 +5,9 @@
<field name="name">Help</field>
</record>
<record id="menu_questions" model="website.menu">
<field name="name">Forum</field>
<field name="url" eval="'/forum/'+str(ref('website_forum.forum_help'))"/>
<record id="menu_website_forums" model="website.menu">
<field name="name">Forums</field>
<field name="url">/forum</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">35</field>
</record>
@@ -21,15 +21,6 @@
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default"
name="Footer Questions Link">
<xpath expr="//ul[@id='products']" position="inside">
<li><a t-attf-href="/forum/%(website_forum.forum_help)d">Q&amp;amp;A</a></li>
<li><a href="/forum">Forums</a></li>
</xpath>
</template>
<!-- helper -->
<template id="link_button">
<form method="POST" t-att-action="url">
+1 -1
View File
@@ -14,7 +14,7 @@
<field name="name">Documentation</field>
<field name="url" eval="'/forum/how-to'"/>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">65</field>
<field name="sequence">55</field>
</record>
<record id="base.open_menu" model="ir.actions.todo">
@@ -8,14 +8,6 @@
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default"
name="Footer Documentation Link">
<xpath expr="//ul[@id='products']" position="inside">
<li><a href="/forum/how-to">Documentation</a></li>
</xpath>
</template>
<!-- Page Index -->
<template id="toc" name="Documentation Index">
<t t-set="level" t-value="level+1"/>
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="job_footer_custom" inherit_id="website.footer_default" name="Footer Job Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a href="/jobs">Jobs</a></li>
</xpath>
</template>
<template id="index" name="Jobs">
<t t-call="website.layout">
<div id="wrap">
@@ -11,5 +11,11 @@
<field name="channel_id" ref="website_livechat.im_livechat_channel_data_website"></field>
</record>
<record id="menu_livechat" model="website.menu">
<field name="name">Live Support</field>
<field name="url">/livechat</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence">55</field>
</record>
</data>
</odoo>
@@ -30,13 +30,6 @@
</xpath>
</template>
<!-- Layout add footer -->
<template id="header_footer_custom" inherit_id="website.footer_default" name="Footer Rating Livechat Link">
<xpath expr="//ul[@id='products']" position="inside">
<li><a href="/livechat/">Livechat Support</a></li>
</xpath>
</template>
<!-- Page Layout -->
<template id="channel_page" name="Livechat Channel Satisfaction Page">
<t t-call="website.layout">
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="mail_template_list_subscribe" model="mail.template">
<field name="name">Subscribe to mailing list</field>
<field name="model_id" ref="mail.model_mail_channel"/>
@@ -26,4 +27,15 @@
<p>If this was a mistake or you did not requested this action, please ignore this message.</p>
</field>
</record>
</data>
<data noupdate="1">
<record id="menu_mailing_list" model="website.menu">
<field name="name">Mailing Lists</field>
<field name="url">/groups</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence">55</field>
</record>
</data>
</odoo>
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="footer_mailing_list" inherit_id="website.footer_default" name="Footer Mailing List Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a t-attf-href="/groups">Mailing List</a></li>
</xpath>
</template>
<template id="assets_frontend" inherit_id="website.assets_frontend">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" href="/website_mail_channel/static/src/css/website_mail_channel.css"/>
@@ -13,6 +13,7 @@ Website for browsing Associations, Groups and Memberships
""",
'depends': ['website_partner', 'website_google_map', 'association', 'website_sale'],
'data': [
'data/membership_data.xml',
'views/website_membership_templates.xml',
'security/ir.model.access.csv',
'security/website_membership.xml',
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="menu_members" model="website.menu">
<field name="name">Members</field>
<field name="url">/members</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence">55</field>
</record>
</data>
</odoo>
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Layout add nav and footer -->
<template id="footer_custom" inherit_id="website.footer_default" name="Footer Associations Link">
<xpath expr="//div[@id='info']/ul" position="inside">
<li><a href="/members">Members</a></li>
</xpath>
</template>
<template id="index" name="Members">
<t t-call="website.layout">
<t t-set="additional_title">Members</t>
-2
View File
@@ -1,4 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
-1
View File
@@ -13,7 +13,6 @@
],
'data': [
'views/website_payment_view.xml',
'views/website_payment_templates.xml',
],
'auto_install': False,
}
@@ -1 +0,0 @@
from . import website
-14
View File
@@ -1,14 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class Website(models.Model):
_inherit = "website"
@api.model
def payment_icons(self):
""" This function returns the list of payment icons which are supported by payment acquirers that are published
"""
return self.env['payment.icon'].sudo().search([('acquirer_ids.website_published', '=', True)])
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="header_footer_custom_payment" inherit_id="website.footer_default" customize_show="True" active="False" name="Payment Icons">
<xpath expr="//div[@id='info']" position="inside">
<h4 class="payment_method_title">Payment Icons</h4>
<ul class="payment_method_list list-inline">
<t t-foreach="request.website.payment_icons()" t-as="icon">
<li>
<span t-field="icon.image" t-options='{"widget": "image", "alt-field": "name"}' />
</li>
</t>
</ul>
</xpath>
</template>
</odoo>
@@ -671,16 +671,11 @@
</t>
</template>
<template id="website.layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
an awesome <a target="_blank" href="http://www.odoo.com/page/crm">Open Source CRM</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
</div>
<template id="website_quote.brand_promotion" inherit_id="website.brand_promotion">
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
<div class="o_brand_promotion">
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
an awesome <a target="_blank" href="http://www.odoo.com/page/crm">Open Source CRM</a>.
</div>
</xpath>
</template>
+5 -9
View File
@@ -1591,15 +1591,11 @@
</div>
</template>
<template id="website.layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
the #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span></div>
<template id="website_sale.brand_promotion" inherit_id="website.brand_promotion">
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
<div class="o_brand_promotion">
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
the #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>.
</div>
</xpath>
</template>
@@ -2,15 +2,6 @@
<odoo>
<data>
<!-- add link to the standard footer -->
<template id="slide_footer" inherit_id="website.footer_default" name="Footer Slides Link">
<xpath expr="//div[@id='info']//ul[hasclass('list-unstyled')]" position="inside">
<li>
<a href="/slides">Presentations</a>
</li>
</xpath>
</template>
<!-- assets -->
<template id="assets_frontend" inherit_id="website.assets_frontend" name="Slide">
<xpath expr="." position="inside">