Update transaction.py

This commit is contained in:
zainab2097 2024-10-01 16:03:51 +03:00 committed by GitHub
parent 1e8f8f3abe
commit 263d6c2551
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Transaction(models.Model):
procedure_id = fields.Many2one(comodel_name='cm.procedure', string='Procedure')
attachment_num = fields.Integer(string='No. of Attachments', compute='compute_attachment_num')
body = fields.Html(string='Transaction Details')
state = fields.Selection(selection=TRANSACTION_STATE, string='state', default='draft')
state = fields.Selection(selection=TRANSACTION_STATE, string='state', default='draft',tracking=True)
need_approve = fields.Boolean(related='preparation_id.need_approve', string='NEED approve', )
due_date = fields.Date(string='Deadline', compute='compute_due_date')
send_date = fields.Date(string='Send Date')