From 047bc013e04accde2c41ff0b5695819a3353bd86 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 25 Apr 2019 08:59:06 +0000 Subject: [PATCH] [FIX] sale: browsing [False] is not a good idea closes odoo/odoo#32930 Signed-off-by: Raphael Collet (rco) --- addons/product/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 0ead3c2e231..6278173486c 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -307,7 +307,7 @@ class ProductProduct(models.Model): def _compute_product_lst_price(self): to_uom = None if 'uom' in self._context: - to_uom = self.env['uom.uom'].browse([self._context['uom']]) + to_uom = self.env['uom.uom'].browse(self._context['uom']) for product in self: if to_uom: