From d10c3fade47c65a77343a779de5092c05917a811 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Thu, 3 Dec 2020 15:12:17 +0000 Subject: [PATCH] [FIX] stock: fix typo in domain Commit 49b965eb1ec6a7ec6c07fa643cc6ae35ee8b5d91 introduced `product_tmpl_ids` into the context for displaying kit components but did not use it in the domain due to a missing `s`. This commit adds the missing `s` in the domain. closes odoo/odoo#62870 X-original-commit: aa135eb966810311837f4d446962850bb5aec82d Signed-off-by: William Henrotin --- addons/stock/models/stock_quant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py index b51e7165d73..15c5b4c7a4e 100644 --- a/addons/stock/models/stock_quant.py +++ b/addons/stock/models/stock_quant.py @@ -46,7 +46,7 @@ class StockQuant(models.Model): return domain = [('type', '=', 'product')] if self.env.context.get('product_tmpl_ids') or self.env.context.get('product_tmpl_id'): - products = self.env.context.get('product_tmpl_id', []) + [self.env.context.get('product_tmpl_id', 0)] + products = self.env.context.get('product_tmpl_ids', []) + [self.env.context.get('product_tmpl_id', 0)] domain = expression.AND([domain, [('product_tmpl_id', 'in', products)]]) return domain