Browse Source

[FIX]: Used before referenced error

pull/45/head
SHEREEF PT 8 years ago
parent
commit
b54dbc8edf
  1. 2
      round_off_invoices/__manifest__.py
  2. 4
      round_off_invoices/models/config.py

2
round_off_invoices/__manifest__.py

@ -23,7 +23,7 @@
{ {
'name': 'Round Off Invoice Amount', 'name': 'Round Off Invoice Amount',
'version': '10.0.1.0.0', 'version': '10.0.2.0.0',
'summary': 'Allows Rounding on Invoice Amount', 'summary': 'Allows Rounding on Invoice Amount',
'description': 'Invoice amount is rounded to their nearest digits excluding the decimal part', 'description': 'Invoice amount is rounded to their nearest digits excluding the decimal part',
'category': 'Accounting', 'category': 'Accounting',

4
round_off_invoices/models/config.py

@ -190,7 +190,7 @@ class AccountRoundOff(models.Model):
'price': total + self.round_off_value, 'price': total + self.round_off_value,
'account_id': inv.account_id.id, 'account_id': inv.account_id.id,
'date_maturity': inv.date_due, 'date_maturity': inv.date_due,
'amount_currency': diff_currency and amount_currency, 'amount_currency': diff_currency and total_currency,
'currency_id': diff_currency and inv.currency_id.id, 'currency_id': diff_currency and inv.currency_id.id,
'invoice_id': inv.id 'invoice_id': inv.id
}) })
@ -202,7 +202,7 @@ class AccountRoundOff(models.Model):
'price': -self.round_off_value, 'price': -self.round_off_value,
'account_id': acc_id, 'account_id': acc_id,
'date_maturity': inv.date_due, 'date_maturity': inv.date_due,
'amount_currency': diff_currency and amount_currency, 'amount_currency': diff_currency and total_currency,
'currency_id': diff_currency and inv.currency_id.id, 'currency_id': diff_currency and inv.currency_id.id,
'invoice_id': inv.id 'invoice_id': inv.id
}) })

Loading…
Cancel
Save