summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-10-29 23:40:24 +0100
committerNicolas Lempereur <nle@odoo.com>2015-10-30 08:40:09 +0100
commitfb872f84f15e46ecf6ca5be0631fae62b523ebbd (patch)
tree0fef07293358528fb7702e2f18cb6bf2b18548f8 /addons/web/static/src/xml
parent329552b78ee6c9efb8abc2a4a3c78f37d43871ac (diff)
[FIX] web: no accesskey for x2m pager
The fix in 665bc1c solved the issue for pager of some X2Many widget x2m which would shadow the accesskey to go to previous/next page of the top view's current model. But in the case a web.Pager (used in community for a X2Many kanban widget) the fix had no effect. opw-652888
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 819dc46b41e..7937b0a5615 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1430,8 +1430,13 @@
<div t-name="Pager">
<span class="o_pager_value"></span> / <span class="o_pager_limit"></span>
<span class="btn-group btn-group-sm">
- <button type="button" class="fa fa-chevron-left btn btn-icon o_pager_previous" accesskey="O"/>
- <button type="button" class="fa fa-chevron-right btn btn-icon o_pager_next" accesskey="P"/>
+ <!-- accesskeys not wanted in X2Many widgets -->
+ <t t-if="!widget.getParent().x2m">
+ <t t-set="att_prev" t-value="{'accesskey': 'O'}" />
+ <t t-set="att_next" t-value="{'accesskey': 'P'}" />
+ </t>
+ <button type="button" class="fa fa-chevron-left btn btn-icon o_pager_previous" t-att="att_prev"/>
+ <button type="button" class="fa fa-chevron-right btn btn-icon o_pager_next" t-att="att_next"/>
</span>
</div>