Skip to content
Snippets Groups Projects
Commit 507408e8 authored by Younn Olivier's avatar Younn Olivier
Browse files

[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#71176

X-original-commit: 059804be
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 6454de7a
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@
<div class="row">
<div class="col-sm text-center text-sm-left text-muted">
<t t-call="web.debug_icon"/>
<span class="o_footer_copyright_name mr-2">Copyright &amp;copy; Company name</span>
<span class="o_footer_copyright_name mr-2">Copyright &amp;copy; <span t-field="res_company.name" itemprop="name">Company name</span></span>
</div>
<div class="col-sm text-center text-sm-right">
<t t-call="web.brand_promotion"/>
......
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment