diff options
| author | Julien Castiaux <juc@odoo.com> | 2019-05-10 14:26:02 +0000 |
|---|---|---|
| committer | Julien Castiaux <juc@odoo.com> | 2019-06-14 09:02:09 +0000 |
| commit | 45bd7a58d5202d6b9387636317eb33efa569f458 (patch) | |
| tree | ea554f5a13f890015909e1ce5de2760d9aeadf3b /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 187b77d7b9fd7ccbd3d09aeb193fe896de98c161 (diff) | |
[FIX] website_sale_comparison: concurrent add/delete
1) Add a 1st product to compare from the ecommerce /shop page.
2) Open the compare list pop up at the bottom.
3) Add a 2nd product to compare from the /shop page.
4) Remove the 1st product from the compare list before the rpc of the
2nd product is done.
5) Javascript error `self.product_data[res] is undefined`
The function `add_new_products` and `rm_from_comparelist` are
concurrent, they both modify the internal `comparelist_product_ids`
product list. The first one perform an RPC and delay the update once the
request is done, the second does the update immediately.
The solution has been to use a mutex to exclude the two functions.
opw-1974108
closes odoo/odoo#33302
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
