summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2019-03-11 09:42:44 +0000
committerDenis Ledoux <dle@odoo.com>2019-03-11 17:22:09 +0000
commitb3c3ed3a09c31c7f9bad9ccd96b42651a91b6863 (patch)
tree18728307f70b799b968793411d0524307331dec9 /addons/web/static/src/js/views/basic/basic_controller.js
parent570f8ee71e2c35537299ffcd3e592ff0b76e9dbb (diff)
[FIX] point_of_sale: improve performance when calling button_confirm_bank
By disabling the tracked fields. Doing a `message_post` invalidates the whole cache https://github.com/odoo/odoo/blob/07e89c5c8d9f3b793a380ecf5ac0cdfee76fcf76/addons/mail/models/mail_thread.py#L2034 Therefore, if messages are posted due to a tracked field during the confirmation of the statement, the whole cache is invalidated and everything is prefetched over and over. e.g. for the field `l10n_mx_edi_sat_status` of `account.payment` in `l10n_mx_edi` which is tracked and which is triggered during the reconciliation https://github.com/odoo/odoo/blob/07e89c5c8d9f3b793a380ecf5ac0cdfee76fcf76/addons/account/models/account_bank_statement.py#L936 The whole cache was being invalidated for each reconciliation of each statement, which slowed down the reconciliation process a lot.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions