diff --git a/account_invoice_show_currency_rate/__manifest__.py b/account_invoice_show_currency_rate/__manifest__.py index 7dbc6ffe7879..7e9b38db9d46 100644 --- a/account_invoice_show_currency_rate/__manifest__.py +++ b/account_invoice_show_currency_rate/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Account Invoice Show Currency Rate", "summary": "Show currency rate in invoices.", - "version": "16.0.1.0.1", + "version": "17.0.1.0.1", "category": "Accounting & Finance", "website": "https://github.com/OCA/account-invoicing", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/account_invoice_show_currency_rate/static/description/index.html b/account_invoice_show_currency_rate/static/description/index.html index a57e96c53e8f..38cdbd2ee9ca 100644 --- a/account_invoice_show_currency_rate/static/description/index.html +++ b/account_invoice_show_currency_rate/static/description/index.html @@ -1,4 +1,3 @@ - diff --git a/account_invoice_show_currency_rate/tests/test_account_move.py b/account_invoice_show_currency_rate/tests/test_account_move.py index ce99766ca9ad..8b4743058316 100644 --- a/account_invoice_show_currency_rate/tests/test_account_move.py +++ b/account_invoice_show_currency_rate/tests/test_account_move.py @@ -5,7 +5,7 @@ from odoo.tests import Form, common -class TestAccountMove(common.SavepointCase): +class TestAccountMove(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -13,6 +13,7 @@ def setUpClass(cls): eur = cls.env.ref("base.EUR") cls.currency = cls.env.ref("base.main_company").currency_id cls.currency_extra = eur if cls.currency == usd else usd + cls.currency_extra.active = True cls.account_tax = cls.env["account.tax"].create( {"name": "0%", "amount_type": "fixed", "type_tax_use": "sale", "amount": 0} ) diff --git a/account_invoice_show_currency_rate/views/account_move_view.xml b/account_invoice_show_currency_rate/views/account_move_view.xml index 1cbeac424f52..a652a48218a1 100644 --- a/account_invoice_show_currency_rate/views/account_move_view.xml +++ b/account_invoice_show_currency_rate/views/account_move_view.xml @@ -14,7 +14,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). name="currency_rate_amount" groups="base.group_multi_currency" digits="[12,12]" - attrs="{'invisible':[('show_currency_rate_amount', '=', False)]}" + invisible="show_currency_rate_amount == False" />