You can also change the view wich creates the robot options. Better then changing the core-file is to inherited it's contents in a new view and make the changes in the duplicated view. This way, the contents will be remembered after a upgrade.
here we go:
1. goto settings menu in the top (as an administrator user)
2. choose in the left panel the menu: user interface
3. choose views
4. Then search and select for the view with the following name/contents "robots"
5. Duplicate this view
6. Change the name of this view immediatly to for e.q. “myrobots”
7. Save <-- just to be sure
8. Choose Edit
9. At the selection of "inhebited view” pick the original view "robots"
10. Change the content of the view with the adjustments needed.
11. Finally save the view.
if you find this answer helpful, please give me a thumbs up vote!
Just add a "data" file to __openerp__.py file with following content:
<?xml version="1.0" encoding="utf-8"?>
<template id="my_robots" inherit_id="website.robots" name="Modified robots.txt">
<xpath expr="." position="replace">
Sitemap: <t t-esc="url_root"/>sitemap.xml
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 8/15/14, 5:46 PM|
|Seen: 2860 times|
|Last updated: 3/16/15, 8:10 AM|