mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-22 19:11:59 +02:00
19.0 vanilla
This commit is contained in:
parent
0a7ae8db93
commit
991d2234ca
416 changed files with 646602 additions and 300844 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue