Update res_config_settings.py

This commit is contained in:
zainab2097 2024-08-08 14:25:22 +03:00 committed by GitHub
parent e18f17088b
commit 270ddb28c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ class CancellReason(models.Model):
name = fields.Char(string='Reasone of Cancellation')
reasone_no = fields.Char("Number", default=lambda self: self._get_next_reasone_no(), tracking=True,copy=False)
sequence = fields.Integer(string="Sequence", help="Define the display order")
@api.model
def _get_next_reasone_no(self):