diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-08 19:19:57 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-08 19:19:57 +0100 |
| commit | 728bb2a28ec84514e3fd63a3732822ed34c028a8 (patch) | |
| tree | 84436a2f2e785ed3737f8b3c494dc4b03cf8de49 /addons/account/models/account_analytic_line.py | |
| parent | 0c42a607ece06b6295ba9d2c71bd8862e4e253ae (diff) | |
| parent | 9553240adc4a29d7b61d63708a53cbb612c0e123 (diff) | |
[MERGE] forward port branch 11.0 up to 9553240adc4
Diffstat (limited to 'addons/account/models/account_analytic_line.py')
| -rw-r--r-- | addons/account/models/account_analytic_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_analytic_line.py b/addons/account/models/account_analytic_line.py index 4e610fd6dcf..2904565f173 100644 --- a/addons/account/models/account_analytic_line.py +++ b/addons/account/models/account_analytic_line.py @@ -34,7 +34,7 @@ class AccountAnalyticLine(models.Model): # Compute based on pricetype amount_unit = self.product_id.price_compute('standard_price', uom=unit)[self.product_id.id] amount = amount_unit * self.unit_amount or 0.0 - result = self.currency_id.round(amount) * -1 + result = (self.currency_id.round(amount) if self.currency_id else round(amount, 2)) * -1 self.amount = result self.general_account_id = account self.product_uom_id = unit |
