From 5e2718693915163f9443d913c5ca8f941a1c1dee Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Mon, 16 Apr 2018 17:55:32 +0200 Subject: [PATCH] [FIX]GOLEM Resource Account : with no income and product name, we should handle unicode characters --- golem_resource_account/models/golem_resource_reservation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/golem_resource_account/models/golem_resource_reservation.py b/golem_resource_account/models/golem_resource_reservation.py index 308f680..1fd0bef 100644 --- a/golem_resource_account/models/golem_resource_reservation.py +++ b/golem_resource_account/models/golem_resource_reservation.py @@ -62,7 +62,7 @@ class GolemResourceReservation(models.Model): if not account_id: raise ValidationError( - _('There is no income account defined for this product: "{}"' + _(u'There is no income account defined for this product: "{}"' '. You have to configure it on the product form.'.format(product.name))) @api.multi @@ -117,6 +117,7 @@ class GolemResourceReservation(models.Model): 'res_id': reservation.invoice_id.id, 'view_mode': 'form', 'view_id': self.env.ref('account.invoice_form').id} + @api.multi def add_to_invoice(self): """ Add reservation to existing invoice"""