Skip to content
Snippets Groups Projects
Commit 59b9452b authored by Martin Trigaux's avatar Martin Trigaux
Browse files

Merge pull request #616 from odoo-dev/7.0-opw-608485-rgo

[FIX] l10n_be_invoice_bba: random generation do not use sequence, so should be 10 char long during padding
parents f29ff5ef d1e9633c
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment