[FIX] product_visible_discount: display full unit price only when the discount column is displayed

Without this, the unit price is visually set to full, the discount column is not visible, but the actual price used in computation is the discounted price, very misleading !
This commit is contained in:
David Monjoie 2014-10-31 14:49:33 +01:00
parent fd20241b0d
commit ac6d67a395
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class sale_order_line(osv.osv):
result=res['value']
pricelist_obj=self.pool.get('product.pricelist')
product_obj = self.pool.get('product.product')
if product and pricelist:
if product and pricelist and self.pool.get('res.users').has_group(cr, uid, 'sale.group_discount_per_so_line'):
if result.get('price_unit',False):
price=result['price_unit']
else: