summaryrefslogtreecommitdiff
path: root/addons/website/views/website_templates.xml
diff options
context:
space:
mode:
authorYounn Olivier <yol@odoo.com>2021-04-27 14:29:11 +0000
committerYounn Olivier <yol@odoo.com>2021-05-18 08:00:15 +0000
commit059804be90021559debee6f930462594a3ca8a97 (patch)
tree323f0a02f299e0d8cdfd8cf6ef0471aee89def89 /addons/website/views/website_templates.xml
parentbee8ac5ccf8106b25566332e769b73e8f707d05b (diff)
[FIX] web, website: display default company name on frontend layout
Before, the "Company name" placeholder was hardcoded in the frontend layout template, and the user had to change it with his company name from the website view, which was not user-friendly if the website module was not installed. Now, by default, the frontend layout template displays the user's company name. If the website module is installed, it is editable. task-2468472 closes odoo/odoo#69943 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/views/website_templates.xml')
-rw-r--r--addons/website/views/website_templates.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml
index 31ab7fcde2f..f34a1135fc7 100644
--- a/addons/website/views/website_templates.xml
+++ b/addons/website/views/website_templates.xml
@@ -172,6 +172,9 @@
<xpath expr="//footer[@id='bottom']" position="attributes">
<attribute name="t-attf-class" add="#{'d-none o_snippet_invisible' if 'footer_visible' in main_object and not main_object.footer_visible else ''}" separator=" "/>
</xpath>
+ <xpath expr="//footer//span[hasclass('o_footer_copyright_name')]" position="replace">
+ <span class="o_footer_copyright_name mr-2">Copyright &amp;copy; Company name</span>
+ </xpath>
</template>
<template id="custom_code_layout" name="Custom Code Layout" inherit_id="website.layout" priority="55">