diff options
| author | Younn Olivier <yol@odoo.com> | 2021-04-27 14:29:11 +0000 |
|---|---|---|
| committer | Younn Olivier <yol@odoo.com> | 2021-05-18 08:00:15 +0000 |
| commit | 059804be90021559debee6f930462594a3ca8a97 (patch) | |
| tree | 323f0a02f299e0d8cdfd8cf6ef0471aee89def89 | |
| parent | bee8ac5ccf8106b25566332e769b73e8f707d05b (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>
| -rw-r--r-- | addons/web/views/webclient_templates.xml | 2 | ||||
| -rw-r--r-- | addons/website/views/website_templates.xml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index c5c90d207f7..b0419b4993e 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -503,7 +503,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 &copy; Company name</span> + <span class="o_footer_copyright_name mr-2">Copyright &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"/> 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 &copy; Company name</span> + </xpath> </template> <template id="custom_code_layout" name="Custom Code Layout" inherit_id="website.layout" priority="55"> |
