Skip to content

Commit

Permalink
[FIX] hr_timesheet_task_stage: Disable automatic hotkeys
Browse files Browse the repository at this point in the history
Without this attribute, Odoo will try to assign a hotkey to buttons. It's very unlikely that these buttons have to be used like this, and since there's a limited number of available hotkeys, they steal them to more important ones like the wizard proposed at OCA/project#586.
  • Loading branch information
yajo committed Oct 2, 2019
1 parent 0829721 commit 62077f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hr_timesheet_task_stage/views/account_analytic_line.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
<button
name="action_close_task"
string="Close task"
tabindex="-1"
type="object"
icon="fa-folder-o"
attrs="{'invisible': ['|', ('is_task_closed', '=', True), ('task_id', '=', False)]}"
/>
<button
name="action_open_task"
string="Open task"
tabindex="-1"
type="object"
icon="fa-folder-open-o"
attrs="{'invisible': ['|', ('is_task_closed', '=', False), ('task_id', '=', False)]}"
Expand Down

0 comments on commit 62077f1

Please sign in to comment.