Skip to content
Permalink
Browse files

[FIX] account_check_printing: Fix traceback on onchange

  • Loading branch information...
sswapnesh committed Mar 23, 2019
1 parent ad826f5 commit e9171d7ee08bdd0d710343e428923032eadb175d
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account_check_printing/models/account_payment.py
@@ -26,7 +26,7 @@ def _onchange_journal_id(self):
def _onchange_amount(self):
if hasattr(super(AccountRegisterPayments, self), '_onchange_amount'):
super(AccountRegisterPayments, self)._onchange_amount()
self.check_amount_in_words = self.currency_id.amount_to_text(self.amount)
self.check_amount_in_words = self.currency_id.amount_to_text(self.amount) if self.currency_id else ''

def _prepare_payment_vals(self, invoices):
res = super(AccountRegisterPayments, self)._prepare_payment_vals(invoices)

0 comments on commit e9171d7

Please sign in to comment.
You can’t perform that action at this time.