-
- Downloads
[FIX] survey: add support for 'disabled' attribute on buttons (in views)
In the xml file of the list view, it is possible to define a button that will be placed in a new column. When the user clicks on a button from a list view, the script will execute the action linked to the corresponding button. Unfortunately, all the buttons of the list views are not necessary linked to an action: This is for example the case for the trophy icon of the survey module. An exception can hence be thrown if the user clicks on such button. To solve the issue, we will add the 'disabled' property support for the buttons and we will add that property to the buttons that do not have an action. With this property, the script will bind no listener to the button and it will hence not call the listener causing the error. task-2612033 closes odoo/odoo#75013 X-original-commit: 0f177045 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com>
Please register or sign in to comment