Skip to content

Commit ed068d0

Browse files
committed
[MIG] account_invoice_check_total: Migration to 18.0
1 parent 950425b commit ed068d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

account_invoice_check_total/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Account Invoice Check Total",
66
"summary": """
77
Check if the verification total is equal to the bill's total""",
8-
"version": "17.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"website": "https://github.com/OCA/account-invoicing",
1010
"author": "Acsone SA/NV, Odoo Community Association (OCA)",
1111
"license": "AGPL-3",

account_invoice_check_total/models/account_move.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2016 Acsone SA/NV
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

4-
from odoo import _, api, fields, models
4+
from odoo import api, fields, models
55
from odoo.exceptions import ValidationError
66
from odoo.tools.float_utils import float_compare
77

@@ -40,7 +40,7 @@ def action_post(self):
4040
!= 0
4141
):
4242
raise ValidationError(
43-
_(
43+
self.env._(
4444
"Please verify the price of the invoice!\n"
4545
"The total amount (%(amount_total)s) does not match "
4646
"the Verification Total amount (%(check_total)s)!\n"

0 commit comments

Comments
 (0)