summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-03-04 19:15:27 +0100
committerOlivier Dony <odo@openerp.com>2016-03-04 19:15:28 +0100
commit9804c54634cc9a30c6f40fed55c0f0ee32af3c65 (patch)
treeab09e97081de0f7d203281da7c713db084b69943 /addons/web/static/src/js/framework/session_instance.js
parent40fdb841ae909304f65785b4c580331a6db59df6 (diff)
[FIX] product_expiry: performance issues due to extra write() call
When creating thousands of production lots in batch, the extra call to write() cuts performance in 2, and can be replaced by an appropriate context when calling super(), as all the default values are computed correctly. The only case that could possibly fail is when the product_id is not passed to the create() call but comes instead from defaut values (ir.values). This case is very rare and considered a manual exception where the expiry dates can be input manually.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions