mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 10:19:09 +02:00
work on project
This commit is contained in:
@@ -17,6 +17,7 @@ class project_task(models.Model):
|
||||
('unassigned', 'Unassigned'),
|
||||
('assigned','Assigned'),('accepted','Accepted'),
|
||||
('started','Started'),('delivered','Delivered'),
|
||||
('collected','Collected'),
|
||||
('cancel','Cancel'),('issue','Issue'),
|
||||
('paid','Paid'),('non_paid','Non Paid'),
|
||||
], string='Status', readonly=True, copy=False, default='unassigned')
|
||||
@@ -38,6 +39,10 @@ class project_task(models.Model):
|
||||
def action_delivery(self):
|
||||
self.state = 'delivered'
|
||||
return True
|
||||
|
||||
def action_collect(self):
|
||||
self.state = 'collected'
|
||||
return True
|
||||
|
||||
def action_cancel(self):
|
||||
self.state = 'cancel'
|
||||
|
||||
Reference in New Issue
Block a user