Skip to content

Commit

Permalink
[MIG] account_invoice_show_currency_rate: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeer2234 committed Mar 21, 2024
1 parent 4286bdb commit 89217d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion account_invoice_show_currency_rate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
from odoo.tests import Form, common


class TestAccountMove(common.SavepointCase):
class TestAccountMove(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
usd = cls.env.ref("base.USD")
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}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
</xpath>
</field>
Expand Down

0 comments on commit 89217d8

Please sign in to comment.