summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.contentMenu.xml
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-09-21 10:48:40 +0200
committeramoyaux <arm@odoo.com>2017-09-22 13:36:16 +0200
commitbb87187cd8225e8007077cd1c1e0500b0f6802f5 (patch)
treeb69086d3bd4db8064418c0a6cb0bf41bb7bfbf7e /addons/website/static/src/xml/website.contentMenu.xml
parentca01a458ec84c53c5c91defccd72fd3c6f883335 (diff)
[FIX] stock: consolidate merge quant
It could exist issue with concurency. If the user try to open the inventory menu but the database can't obtain the lock for quants to modify/delete. It could raise a traceback to the end user. In order to prevent that we use a try catch and pass the exception it's okay if all the quants are not merged for the user, it will probably be the next time. It also use a savepoint in order to not rollback the whole transaction. The merge quants was only used once the user click on inventory menu. But if the user only do it once every 2-3 years, there could be too much quants to merge in only one transaction. In order to avoit it, we also deduplicate quants in the scheduler cron.
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions