File: website_robots.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (27 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 t-translation="off" class='ms-4'>Disallow: /web/login</code><br/>
                    <code t-translation="off" class='ms-4'>Allow: *</code>
                </small>
                <footer>
                    <button string="Save" name="action_save" type="object" class="oe_highlight" data-hotkey="q"/>
                    <button string="Cancel" class="btn btn-default" special="cancel" data-hotkey="x"/>
                </footer>
            </form>
        </field>
    </record>

</odoo>