**Impacted versions:**
10, 11, master, tested on runbot today
**Steps to reproduce:**
Customer and Vendor Credit Note  on invoice analysis are not rest, total is incorrect on analysis. [This commit](https://github.com/odoo/odoo/commit/ecc75092776ca11089772a970fba9638071322d9) is wrong. Field price_subtotal_signed is correct signed with invoice type(in_refund, out_refund signed negative, other signed positive. **It is correct**. BUT ail.price_subtotal_signed * invoice_type.sign is wrong multiplicate with signed again)
Note: invoice_type.sign must be only for multiplicate by quantity, no by amount_total. Read [comment](https://github.com/odoo/odoo/blob/11.0/addons/account/report/account_invoice_report.py#L136).

**Current behavior:**
Customer and vendor Credit Note amount total is sum in analysis
**Expected behavior:**
Credit Note must be rest amount, not sum.
**Solution, revert [this commit](https://github.com/odoo/odoo/commit/ecc75092776ca11089772a970fba9638071322d9)**
Video/Screenshot link (optional):

**Some Printscreen.** tested on runbot from [this branch](http://269594-10-0-19eb19.runbot9.odoo.com)
**Customer invoices**
Customer Agrolait Invoice INV/2017/0004 is Credit Note(refund) signed on negative(amount -650.00), total for this customer is **525** rest credit Note(525 + 650 - 650), but on analysis total for this customer is **1825**, this value is wrong(525 + 650 -(*- signed are convert to +) 650).
**Customer Invoice**
![image](https://user-images.githubusercontent.com/7775116/31320314-329dc74a-ac38-11e7-8a44-389ac9dbdf2a.png)
**Invoice Analysis**
![image](https://user-images.githubusercontent.com/7775116/31320320-422351c6-ac38-11e7-8b1b-a7fda4b86a3d.png)

**Vendor Invoices**
Vendor Camptocamp Invoice BILL/2017/0004 is Credit Note(refund) signed on negative(amount -10,000.00), total for this customer is **14** rest credit Note(14 + 10,000.00 - 10,000.00), but on analysis total for this Vendor is **-20,014.00**, this value is wrong(14 + 10,000.00 -(*- signed are convert to +) 10,000.00).
**Vendor Invoice**
![image](https://user-images.githubusercontent.com/7775116/31320348-ceaf21ba-ac38-11e7-841f-4dad74f8a9d7.png)
**Invoice Analysis**
![image](https://user-images.githubusercontent.com/7775116/31320400-8e587b74-ac39-11e7-94a1-424e0d1caae4.png)




user_id = fields.Many2one('res.users', string='Salesperson', readonly=True)
    price_total = fields.Float(string='Total Without Tax', readonly=True)
    user_currency_price_total = fields.Float(string="Total Without Tax", compute='_compute_amounts_in_user_currency', digits=0)
    price_average = fields.Float(string='Average Price', readonly=True, group_operator="avg")
    user_currency_price_average = fields.Float(string="Average Price", compute='_compute_amounts_in_user_currency', digits=0)
    currency_rate = fields.Float(string='Currency Rate', readonly=True, group_operator="avg")
    nbr = fields.Integer(string='# of Lines', readonly=True)  
    type = fields.Selection([
        ('out_invoice', 'Customer Invoice'),
        ('in_invoice', 'Vendor Bill'),
        ('out_refund', 'Customer Refund'),
        ('in_refund', 'Vendor Refund'),
        ], readonly=True)
    state = fields.Selection([
        ('draft', 'Draft'),
        ('proforma', 'Pro-forma'),
        ('proforma2', 'Pro-forma'),
        ('open', 'Open'),
        ('paid', 'Done'),
        ('cancel', 'Cancelled')
        ], string='Invoice Status', readonly=True)
    date_due = fields.Date(string='Due Date', readonly=True)
    account_id = fields.Many2one('account.account', string='Account', readonly=True, domain=[('deprecated', '=', False)])
    account_line_id = fields.Many2one('account.account', string='Account Line', readonly=True, domain=[('deprecated', '=', False)])
    partner_bank_id = fields.Many2one('res.partner.bank', string='Bank Account', readonly=True)
    residual = fields.Float(string='Total Residual', readonly=True)
    user_currency_residual = fields.Float(string="Total Residual", compute='_compute_amounts_in_user_currency', digits=0)
    country_id = fields.Many2one('res.country', string='Country of the Partner Company')
    weight = fields.Float(string='Gross Weight', readonly=True)
    volume = fields.Float(string='Volume', readonly=True)