**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)




_order = 'date desc'
    _depends = {
        'account.invoice': [
            'account_id', 'amount_total_company_signed', 'commercial_partner_id', 'company_id',
            'currency_id', 'date_due', 'date_invoice', 'fiscal_position_id',
            'journal_id', 'partner_bank_id', 'partner_id', 'payment_term_id',
            'residual', 'state', 'type', 'user_id',
        ],
        'account.invoice.line': [
            'account_id', 'invoice_id', 'price_subtotal', 'product_id',
            'quantity', 'uom_id', 'account_analytic_id',
        ],
        'product.product': ['product_tmpl_id'],
        'product.template': ['categ_id'],
        'product.uom': ['category_id', 'factor', 'name', 'uom_type'],
        'res.currency.rate': ['currency_id', 'name'],
        'res.partner': ['country_id'],
    }
    def _select(self):
        select_str = """
            SELECT sub.id, sub.date, sub.product_id, sub.partner_id, sub.country_id, sub.account_analytic_id,
                sub.payment_term_id, sub.uom_name, sub.currency_id, sub.journal_id,
                sub.fiscal_position_id, sub.user_id, sub.company_id, sub.nbr, sub.type, sub.state,
                sub.weight, sub.volume,
                sub.categ_id, sub.date_due, sub.account_id, sub.account_line_id, sub.partner_bank_id,
                sub.product_qty, sub.price_total as price_total, sub.price_average as price_average,
                COALESCE(cr.rate, 1) as currency_rate, sub.residual as residual, sub.commercial_partner_id as commercial_partner_id
        """
        return select_str
    def _sub_select(self):