issue for bi_manual_currency_exchange_rate_invoice_payment (#113)
Status: OPEN
Date: 21/04/2021
ID: 113
S/O number: SO2021/1382286
Reviewer: Hiral Bhatt
Module Name: bi_manual_currency_exchange_rate_invoice_payment
Version: 12.0

Assigned to
Mansi Ramani
Reported by
A Khaliq

when i apply echnage rate in invoice and resgiter payemnt if i try to cancel payment and thhen confirm
again it gives error using odoo 12 enterpise

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/", line 87, in reraise
raise value
File "/home/odoo/src/odoo/odoo/", line 698, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/", line 941, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/", line 519, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/", line 967, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/src/odoo/addons/web/controllers/", line 955, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/user/period_lock/models/", line 82, in post
return super(account_payment, self).post()
File "/home/odoo/src/odoo/addons/payment/models/", line 101, in post
res = super(AccountPayment, self - payments_need_trans).post()
File "/home/odoo/src/odoo/addons/account_check_printing/models/", line 67, in post
res = super(AccountPayment, self).post()
File "/home/odoo/src/odoo/addons/account/models/", line 702, in post
move = rec._create_payment_entry(amount)
File "/home/odoo/src/user/bi_manual_currency_exchange_rate_invoice_payment/models/", line 172, in _create_payment_entry
amount_currency_wo, currency_id = aml_obj.with_context(date=self.payment_date).compute_amount_fields(self.payment_difference, self.currency_id, self.company_id.currency_id, invoice_currency)[2:]
AttributeError: 'account.move.line' object has no attribute 'compute_amount_fields'

Message and communication history