Take into account the line discount in the price. closes odoo/odoo#37171 Signed-off-by: Josse Colpaert <jco@openerp.com>