Fix _credit method.

This commit is contained in:
Sergio Morillo 2018-02-26 09:35:36 +01:00
parent 4746961210
commit 50e20ed05b
1 changed files with 1 additions and 1 deletions

View File

@ -92,5 +92,5 @@ class Invoice(ContactMixin):
def _credit(self):
res = super(Invoice, self)._credit()
if self.contact:
res['contact'] = self.contact.id
res.contact = self.contact.id
return res