[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
This commit is contained in:
Nicolas Lempereur
2015-10-30 08:40:09 +01:00
parent 329552b78e
commit fb872f84f1
+7 -2
View File
@@ -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>