[FIX] product: ensure at least 1 item when computing price from pricelist
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user