Use maintained NCF package dependencies
Publicar paquete PyPI / publish (push) Successful in 1m26s

This commit is contained in:
José Arturo García
2026-08-16 20:53:56 -04:00
parent bb783e1c4e
commit fd228e8711
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1733,7 +1733,8 @@ class Invoice(metaclass=PoolMeta):
if not number:
return
legacy_supplier_ncf = (
invoice.type == 'in' and re.fullmatch(r'[A-Z]\d{18}', number))
getattr(invoice, 'type', None) == 'in'
and re.fullmatch(r'[A-Z]\d{18}', number))
if not legacy_supplier_ncf and not re.fullmatch(
r'(?:B\d{10}|E\d{12})', number):
raise UserError(gettext(