This commit is contained in:
+2
-1
@@ -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(
|
||||
|
||||
@@ -50,6 +50,7 @@ include = [
|
||||
[tool.hatch.metadata.hooks.tryton]
|
||||
copyright = 'COPYRIGHT'
|
||||
readme = 'README.rst'
|
||||
prefixes = {account_credit_note = 'unpaismejor', account_debit_note = 'unpaismejor', account_invoice_do = 'unpaismejor'}
|
||||
|
||||
[tool.hatch.metadata.hooks.tryton.tryton-optional-dependencies]
|
||||
test = ['proteus']
|
||||
|
||||
Reference in New Issue
Block a user