'This function creates a no_gap sequence on each companies in self that will ensure
a unique number is given to all posted account.move in such a way that we can always
find the previous move of a journal entry.'

def _create_secure_sequence(self):

    for company in self:
        vals = {'name': ('French    Securisation    of    account_move_line    -    ' + company.name), 'code': 'FRSECUR', 'implementation': 'no_gap', 'prefix': '', 'suffix': '', 'padding': 0, 'company_id': company.id}
        seq = self.env['ir.sequence'].create(vals)
        company.write({'l10n_fr_secure_sequence_id': seq.id})
