From f8c19f9373f2e7295615a4964923c24ff5476d23 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Sat, 18 Apr 2015 15:30:28 +0200 Subject: [PATCH] [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 :) --- addons/account/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 2f9edf23196..73ce713d994 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -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):