diff --git a/addons/account/models/account_journal.py b/addons/account/models/account_journal.py index eec8ce0557b..7ca0362f6bc 100644 --- a/addons/account/models/account_journal.py +++ b/addons/account/models/account_journal.py @@ -706,6 +706,10 @@ class AccountJournal(models.Model): if journal.type == 'bank' and not journal.bank_account_id and vals.get('bank_acc_number'): journal.set_bank_account(vals.get('bank_acc_number'), vals.get('bank_id')) + # Create the secure_sequence_id if necessary + if journal.restrict_mode_hash_table and not journal.secure_sequence_id: + journal._create_secure_sequence(['secure_sequence_id']) + return journals def set_bank_account(self, acc_number, bank_id=None): diff --git a/doc/cla/corporate/braintec.md b/doc/cla/corporate/braintec.md index 356107fa148..3ec79978bb1 100644 --- a/doc/cla/corporate/braintec.md +++ b/doc/cla/corporate/braintec.md @@ -16,4 +16,4 @@ List of contributors: Raul Martin raul.martin@braintec.com https://github.com/BT-rmartin Frédéric Garbely frederic.garbely@braintec.com https://github.com/BT-fgarbely Carlos Serra Toro carlos.serra@braintec.com https://github.com/BT-cserra - +Cristian Rodriguez Navarro cristian.rodriguez@braintec.com https://github.com/BT-crodriguez