erp5_officejs_support_request_ui: do small speed improvement
on getting project list in the support request fast input dialog
Showing
-
Using
(o.title, o.id)
should be better in some cases. I am usinggetProperty
to be more explicit on the fallback to object property if not given byselect_list
.E.g.
o.validation_state
raises if not given byselect_list
, this acts differently than usinggetProperty("validation_state")
.However, there's a magic for
o.title
ando.id
that get the object property even if not given byselect_list
. So it acts exactly likegetProperty("title")
.
Please register or sign in to comment