[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:
committed by
Odoo Online
parent
8846dcb179
commit
f8c19f9373
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user