Update res_config_settings.py

This commit is contained in:
zainab2097 2024-08-08 13:50:36 +03:00 committed by GitHub
parent ef7a018049
commit e18f17088b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class CancellReason(models.Model):
next_sequence = "/ "
sequence = self.env['ir.sequence'].search(
['|', ('company_id', '=', self.env.company[0].id), ('company_id', '=', False),
('code', '=', 'seq.product.template')], limit=1)
('code', '=', 'seq.cancellation.reason')], limit=1)
if sequence:
next_sequence = sequence.get_next_char(sequence.number_next_actual)
return next_sequence