diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2017-03-10 14:08:06 +0100 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2017-03-10 14:45:22 +0100 |
| commit | c781c1e5e2d186b1c03c5b60e522f8e730d59a0e (patch) | |
| tree | ec9c8908ed8d7a68b9f2e9e8678774fe8f86ee7f /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 82a663db251d4962dc62dc58bd650ee073eb7f8e (diff) | |
[FIX] account: when changing settings, if currency has not change, don't update it
this increases performance, reason is because when saving a res.config.setting, even if a field has not changed,
they will be updated and this might trigger recomputation, and so on...
Problem here is that when writing a currency_id to the company, all moves are impacted due to the
company_currency_id which is a related stored field. And saving the settings in accounting can be
pretty slow if we have lots of move. This fix reduce the time needed to save settings by not
writing currency_id on the company if the value has not changed.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
