diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 3de5301c621..acc8cfab3ac 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -260,7 +260,6 @@ class ResPartner(models.Model): def _invoice_total(self): account_invoice_report = self.env['account.invoice.report'] if not self.ids: - self.total_invoiced = 0.0 return True user_currency_id = self.env.user.company_id.currency_id.id diff --git a/odoo/models.py b/odoo/models.py index d58f4d50a4e..e9dcf198c46 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3923,7 +3923,7 @@ class BaseModel(object): # mark missing records in cache with a failed value exc = MissingError( _("Record does not exist or has been deleted.") - + '\n\n({} {}, {} {})'.format(_('Records:'), (self - existing).ids[:6], _('User:'), self._uid) + + u'\n\n({} {}, {} {})'.format(_('Records:'), (self - existing).ids[:6], _('User:'), self._uid) ) (self - existing)._cache.update(FailedValue(exc)) return existing