summaryrefslogtreecommitdiff
path: root/addons/website/wizard/website_robots.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website/wizard/website_robots.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website/wizard/website_robots.xml')
-rw-r--r--addons/website/wizard/website_robots.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/addons/website/wizard/website_robots.xml b/addons/website/wizard/website_robots.xml
new file mode 100644
index 00000000..dd0a9147
--- /dev/null
+++ b/addons/website/wizard/website_robots.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_edit_robots" model="ir.ui.view">
+ <field name="name">Edit Robots.txt</field>
+ <field name="model">website.robots</field>
+ <field name="arch" type="xml">
+ <form>
+ <field name="content"/>
+ <small>
+ <a role="button" class="btn btn-link" target="_blank" href="https://www.google.com/webmasters/tools/robots-testing-tool">
+ Test your robots.txt with Google Search Console
+ </a>
+ <br/><br/>
+ Example of rule:<br/>
+ <code class='ml-4'>Disallow: /web/login</code><br/>
+ <code class='ml-4'>Allow: *</code>
+ </small>
+ <footer>
+ <button string="Save" name="action_save" type="object" class="oe_highlight"/>
+ <button string="Cancel" class="btn btn-default" special="cancel"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+</odoo>