[IMP] base/ir/ir_sequence : New subsequences for date ranges and convert to new api

aka `self.env.user.company_id`