Update res_config_settings.py

This commit is contained in:
zainab2097 2024-08-08 17:10:03 +03:00 committed by GitHub
parent 3cfc3b10ce
commit 8f79b55cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ 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")
company_id = fields.Many2one('res.company', string='Company', readonly=True,default=lambda self: self.env.company)
@api.model
def _get_next_reasone_no(self):