summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/core
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-03-11 09:25:29 +0000
committerjvm-odoo <jvm@odoo.com>2020-03-13 11:26:09 +0000
commitc7f095396e88b67844bf0e4f1d35847f59a80400 (patch)
tree8796579277911bc55472651bf9baab50a5c97d40 /addons/web/static/tests/core
parent594ca5ea8bfb43453e81ded3337e4149e2414915 (diff)
[FIX] product, purchase_stock: fix infinite loop on template name_search
Issue - Install purchase_product_matrix, Inventory - Create a (storable) Product P with default_code e.g. VOB2A with a vendor V who uses a product_code e.g. VOB2a - Create a PO/RFQ for vendor V - Add a product, search "vob2" (copy/paste) Infinite loop Cause purchase_product_matrix replace purchase.order_line.product.product by product.template so the name_search is different and the product.template's name_search loop doesn't support the case where you have default_code == product_code Solution Check if the product's name_search returned a product containing product_template_ids that we did not wanted (as mentionned in the domain). If yes, it means that we will have an infinite loop so we should break. Additional note: the issue could be in versions < 13 but purchase_product_matrix is only in 13.0 and this is not a very common case. OPW-2193005 closes odoo/odoo#47576 X-original-commit: 9d5d80f77bc04be83d5b2ca0569a6ea50e26a07e Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/web/static/tests/core')
0 files changed, 0 insertions, 0 deletions