Skip to content
Snippets Groups Projects
Commit d1e9633c authored by Ravi Gohil's avatar Ravi Gohil
Browse files

[FIX] l10n_be_invoice_bba: Fixed the length of random generated code to ensure...

[FIX] l10n_be_invoice_bba: Fixed the length of random generated code to ensure it generates 10 digit code so that it allows validation of invoice. (Maintenance Case: 608485)
parent 86b80cf9
Branches
Tags
No related merge requests found
......@@ -141,7 +141,7 @@ class account_invoice(osv.osv):
elif algorithm == 'random':
if not self.check_bbacomm(reference):
base = random.randint(1, 9999999999)
bbacomm = str(base).rjust(7, '0')
bbacomm = str(base).rjust(10, '0')
base = int(bbacomm)
mod = base % 97 or 97
mod = str(mod).rjust(2, '0')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment