[FIX] account invoice price_subtotal_signed

how many engineer does it take to compute a field ?
4 and 3 commits, and nobody got it right including me :)
This commit is contained in:
Antony Lesuisse
2015-04-18 15:35:34 +02:00
committed by Odoo Online
parent 8846dcb179
commit f8c19f9373
+1 -1
View File
@@ -1232,7 +1232,7 @@ class account_invoice_line(models.Model):
sign = -1 if self.invoice_id.type in ['in_invoice', 'out_refund'] else 1
self.price_subtotal = inv_cur.round(self.price_subtotal)
self.price_subtotal_signed = inv_cur.round(self.price_subtotal_signed * sign)
self.price_subtotal_signed = inv_cur.round(price_subtotal_signed * sign)
@api.model
def _default_price_unit(self):