[FIX] sale: browsing [False] is not a good idea

closes odoo/odoo#32930

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
This commit is contained in:
Raphael Collet
2019-05-23 05:48:03 +00:00
parent 1c1d0b3893
commit 047bc013e0
+1 -1
View File
@@ -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: