diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-08-20 16:44:29 +0200 |
|---|---|---|
| committer | xmo-odoo <xmo@odoo.com> | 2018-09-11 16:43:55 +0200 |
| commit | f11d143f00add145f1a05b51968108e46b96ca87 (patch) | |
| tree | bd1778fad61cf3c06eb16e5fd8384b466fb87015 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | d7210f525716efdb6393db06ea2834d1a928330e (diff) | |
[IMP] base: avoid re-serializing the tz list every time we create a partner
odoo.fields.Selection.convert_to_cache checks that values being set on
the field are valid (part of the selection's values).
For res.partner because of the tz field that means duplicating a list of
~600 timezones and sorting it every time we create a partner. Which for
my test case is 2500 times and burns 3.8% of total runtime for
absolutely no reason.
statically compute the reordered tzs list and just return it as-is from
_tz_get.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
