[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 <Whenrow@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user