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'
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<button name="action_accept" type="object" string="Accept" states="assigned" class="oe_highlight" />
|
||||
<button name="action_start" type="object" string="Start" states="accepted,issue" class="oe_highlight" />
|
||||
<button name="action_delivery" type="object" string="Delivered" states="started" class="oe_highlight" />
|
||||
<button name="action_collect" type="object" string="Collected" states="started" class="oe_highlight" />
|
||||
<button name="action_cancel" type="object" string="Cancel" states="started,issue" class="oe_highlight" />
|
||||
<button name="action_issue" type="object" string="Issue" states="started" class="oe_highlight" />
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
'depends': ['sale_management','industry_fsm','project'],
|
||||
'data': [
|
||||
'views/res_config_views.xml',
|
||||
'views/sale_view.xml',
|
||||
# 'views/sale_view.xml',
|
||||
],
|
||||
'demo': [],
|
||||
'test': [],
|
||||
|
||||
BIN
sale_field_service_task/__pycache__/__init__.cpython-36.pyc
Normal file
BIN
sale_field_service_task/__pycache__/__init__.cpython-36.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
sale_field_service_task/models/__pycache__/sale.cpython-36.pyc
Normal file
BIN
sale_field_service_task/models/__pycache__/sale.cpython-36.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user