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
Tags:

Assigned to
Contact
Mansi Ramani
mansi.ramani@browseinfo.in
Reported by
Contact
A Khaliq
rkhaliq7@gmail.com

Description
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/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/odoo/src/odoo/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 967, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 955, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/user/period_lock/models/period_lock.py", line 82, in post
return super(account_payment, self).post()
File "/home/odoo/src/odoo/addons/payment/models/account_payment.py", line 101, in post
res = super(AccountPayment, self - payments_need_trans).post()
File "/home/odoo/src/odoo/addons/account_check_printing/models/account_payment.py", line 67, in post
res = super(AccountPayment, self).post()
File "/home/odoo/src/odoo/addons/account/models/account_payment.py", line 702, in post
move = rec._create_payment_entry(amount)
File "/home/odoo/src/user/bi_manual_currency_exchange_rate_invoice_payment/models/account_payment.py", 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