Allow to set cost price to 0 in product lines

This commit is contained in:
Guillem Barba 2015-04-15 19:44:59 +02:00
parent 0a76032c80
commit e10bfa62b4
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ class PlanProductLine(ModelSQL, ModelView):
UoM = Pool().get('product.uom')
if (not self.product or not self.uom
or (self.cost_price
or (self.cost_price != None
and self.cost_price != self.product.cost_price)):
cost = self.cost_price
else: