forked from Yaltik/golem
[FIX]GOLEM Resource Account : with no income and product name, we should handle unicode characters
This commit is contained in:
parent
6d163a7a93
commit
5e27186939
@ -62,7 +62,7 @@ class GolemResourceReservation(models.Model):
|
|||||||
|
|
||||||
if not account_id:
|
if not account_id:
|
||||||
raise ValidationError(
|
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)))
|
'. You have to configure it on the product form.'.format(product.name)))
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@ -117,6 +117,7 @@ class GolemResourceReservation(models.Model):
|
|||||||
'res_id': reservation.invoice_id.id,
|
'res_id': reservation.invoice_id.id,
|
||||||
'view_mode': 'form',
|
'view_mode': 'form',
|
||||||
'view_id': self.env.ref('account.invoice_form').id}
|
'view_id': self.env.ref('account.invoice_form').id}
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def add_to_invoice(self):
|
def add_to_invoice(self):
|
||||||
""" Add reservation to existing invoice"""
|
""" Add reservation to existing invoice"""
|
||||||
|
Loading…
Reference in New Issue
Block a user