summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-01-20 12:11:51 +0100
committerDenis Ledoux <dle@odoo.com>2015-01-20 12:17:45 +0100
commitfb4c8220009d167c594acb93816014c48bed6cb2 (patch)
tree8ea4fc6038e56757b356fe06e5e4acfe6f840703 /addons/analytic_user_function
parent6c55a4bfeda86b77080e9076912e0109e2cc5411 (diff)
[FIX] account_asset: using attrs to hide method_* fields
In order to hide fields method_number and method_period to hide them according to the asset, fields_view_get method was overriden. An issue was present: if a search view on model account.asset.asset was added, and did not contain these method_* fields, this overriden fields_view_get was applied, and tried to hide method_* fields, while they were not present in the search view, which leaded to a crash. I could have solved this the easy way, to not apply the invisbility if the fields were not present in the view, or if the view was something else than form, but I prefered to solve this the cleanest way.
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions