问题
How do you remove the backlinks from the public front end of Odoo 8?
Location: lower right corner of the page, in the footer.
HTML Code:
<div class="pull-right">
Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
the #1
<a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>.
</div>
These backlinks are shown to all search engines, and to anybody visiting the site, who is not logged in to the site!!
And when you log in, Odoo dynamically removes the links from the generated HTML page.
Odoo is very nice, but...
We cannot be displaying its back links on all public website page footers!
How do you remove them??
回答1:
I've determined how to solve this issue.
- First, log in to back end as administrator. Activate Technical Features, if not already activated, by going to Settings > Users > Users > (your Administrator user name, default is Administrator) > Edit > Usability > Technical Features > check the box (active), click Save.
- Go to Settings > Technical > User Interface > Views.
- In the search box, next to "(filter icon) Active", type "Footer Copyright", and hit enter to search.
- There will be one search result. (View name: Footer Copyright. View type: QWeb view.) Click to open it.
- Click Edit.
- Comment out lines 6-7 of the code as follows:
<!-- Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>. -->
- Click Save.
- Refresh the browser view of your Odoo front end website. Log out of the front end of your Odoo website. You'll see the previously visible "Powered by" backlinks and text, is now removed! For more info or help, see the following blog entry: http://www.espacenetworks.com/blog/entry/how-to-remove-the-powered-by-odoo-1-open-source-ecommerce-footer-from-front-end-of-odoo-8.html
回答2:
It's recommended to use modules to make updates in odoo.
You can create new module or try existed modules, e.g. website_debranding:
<template id="layout_footer_copyright" inherit_id="website.layout_footer_copyright">
<xpath expr="//div[@t-ignore='true']" position="replace">
</xpath>
</template>
回答3:
You can remove it directly from the source code (or modify to anything you want. Take a look at the file openerp/addons/website/views/website_templates.xml
P/s: Sorry for not posting this as a comment as it requires me 50 reputations :(
回答4:
See this guide: http://odoo.guide/debranding-odoo-backend/
There is a module to override all of that, which is the preferred way.
Check the master branch here https://superuser.com/a/808851/71031
回答5:
- Active developer mode.
- Enable technical features.
- Go to
Settings > Technical > User Interface > Views
. - In the search box, next to
(filter icon) Active
, typesecondary
, and hit enter to search. - Choose
web.menu_secondary
. Click to open it. Now find this tag and comment it like.
<!--div class="oe_footer"> Powered by <a href="http://www.openerp.com" target="_blank"><span>Odoo</span></a> </div-->
Hope this will solve your problem.
来源:https://stackoverflow.com/questions/27372526/how-to-remove-the-powered-by-odoo-1-open-source-ecommerce-footer-from-front-end