19.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:07:25 +02:00
parent 0a7ae8db93
commit 991d2234ca
416 changed files with 646602 additions and 300844 deletions

View file

@ -6,7 +6,7 @@ from collections import OrderedDict
from decimal import ROUND_HALF_UP, Decimal
from math import floor
from odoo import MIN_PY_VERSION
from odoo.release import MIN_PY_VERSION
# The following section of the code is used to monkey patch
# the Arabic class of num2words package as there are some problems
@ -145,7 +145,7 @@ class Num2Word_Base:
def to_cardinal_float(self, value):
try:
float(value) == value
_ = float(value) == value
except (ValueError, TypeError, AssertionError, AttributeError):
raise TypeError(self.errmsg_nonnum % value)
@ -971,7 +971,7 @@ class NumberToWords_BG(Num2Word_Base):
return ret_minus + ''.join(ret)
def patch_num2words():
def patch_module():
try:
import num2words # noqa: PLC0415
except ImportError: