I receive the following traceback when I try to validate an invoice:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 638, in _handle_exception
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 675, in dispatch
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 331, in _call_function
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\service\model.py", line 119, in wrapper
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 324, in checked_call
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 933, in __call__
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 504, in response_wrap
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\web\controllers\main.py", line 866, in call_button
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\web\controllers\main.py", line 854, in _call_kw
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\api.py", line 681, in call_kw
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\api.py", line 672, in call_kw_multi
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\account\models\account_invoice.py", line 562, in action_invoice_open
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\account_asset\models\account_invoice.py", line 17, in action_move_create
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\account\models\account_invoice.py", line 809, in action_move_create
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\purchase\models\account_invoice.py", line 109, in invoice_line_move_line_get
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\stock_account\models\account_invoice.py", line 19, in invoice_line_move_line_get
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\stock_dropshipping\models\stock_dropshipping.py", line 19, in _anglo_saxon_sale_move_lines
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\stock_account\models\account_invoice.py", line 47, in _anglo_saxon_sale_move_lines
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\stock_account\models\account_invoice.py", line 80, in _get_price
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\base\res\res_currency.py", line 158, in compute
File "C:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\base\res\res_currency.py", line 136, in _get_conversion_rate
AttributeError: 'int' object has no attribute 'with_env'
Hello Ayman Mohammed Adam, I'm not sure I understand your answer. Do I need to edit the code, create a new method? Why is this broken? As I said, I don't even have multiple currencies enabled, what is the real issue here?