Files
odoo_source/addons/website/wizard/website_robots.xml
T
Kevin Baptiste 86aa7b78aa [IMP] *: introduce data-hotkey on form and modal views
Define `data-hotkey` on most used action buttons.

For the modals, the following keys are dedicated for "special"
actions:
 - Alt+G: add
 - Alt+V: save
 - Alt+Z: cancel

closes odoo/odoo#73275

Taskid: 2588233
Related: odoo/enterprise#19464
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-07-15 08:39:49 +00:00

28 lines
1.1 KiB
XML

<?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" data-hotkey="q"/>
<button string="Cancel" class="btn btn-default" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>