diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index 911481a003b..ef0f698424b 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -160,7 +160,7 @@ class ProductTemplate(models.Model): if pricelist_id_or_name: pricelist = None partner = self._context.get('partner') - quantity = self._context.get('quantity') + quantity = self._context.get('quantity', 1.0) # Support context pricelists specified as display_name or ID for compatibility if isinstance(pricelist_id_or_name, basestring):