summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-08-31 08:54:06 +0000
committerAaron Bohy <aab@odoo.com>2018-10-08 09:19:21 +0000
commita69f117bbf5031bde6c2d353a2adcfb399bf466a (patch)
treedf0a440fd63c3c853b9bc8674f457071328f080f /doc/reference
parent078b31dc7f67f3893bcbe5a3b76936490add0e38 (diff)
[FIX] board: handle actions with no view_mode
The view_mode attribute is automatically set to the 'action' nodes when the action is added to the dashboard using the 'Add to dashboard' button in the searchview. However, other dashboard views can be written by hand (see openacademy tutorial), and in this case, we don't want to hardcode action's params (like context or domain), as the dashboard can directly retrieve them from the action. Same applies for the view_type, as the first view of the action can be used, by default. Before this rev., the second usecase wasn't handled, and it crashed when no view_mode was specified. This rev. also ensure that the context and domain are correctly retrieved from the action. Closes #24088 closes odoo/odoo#27517
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions