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'),
|
('unassigned', 'Unassigned'),
|
||||||
('assigned','Assigned'),('accepted','Accepted'),
|
('assigned','Assigned'),('accepted','Accepted'),
|
||||||
('started','Started'),('delivered','Delivered'),
|
('started','Started'),('delivered','Delivered'),
|
||||||
|
('collected','Collected'),
|
||||||
('cancel','Cancel'),('issue','Issue'),
|
('cancel','Cancel'),('issue','Issue'),
|
||||||
('paid','Paid'),('non_paid','Non Paid'),
|
('paid','Paid'),('non_paid','Non Paid'),
|
||||||
], string='Status', readonly=True, copy=False, default='unassigned')
|
], string='Status', readonly=True, copy=False, default='unassigned')
|
||||||
@@ -39,6 +40,10 @@ class project_task(models.Model):
|
|||||||
self.state = 'delivered'
|
self.state = 'delivered'
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def action_collect(self):
|
||||||
|
self.state = 'collected'
|
||||||
|
return True
|
||||||
|
|
||||||
def action_cancel(self):
|
def action_cancel(self):
|
||||||
self.state = 'cancel'
|
self.state = 'cancel'
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<button name="action_accept" type="object" string="Accept" states="assigned" class="oe_highlight" />
|
<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_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_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_cancel" type="object" string="Cancel" states="started,issue" class="oe_highlight" />
|
||||||
<button name="action_issue" type="object" string="Issue" states="started" 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'],
|
'depends': ['sale_management','industry_fsm','project'],
|
||||||
'data': [
|
'data': [
|
||||||
'views/res_config_views.xml',
|
'views/res_config_views.xml',
|
||||||
'views/sale_view.xml',
|
# 'views/sale_view.xml',
|
||||||
],
|
],
|
||||||
'demo': [],
|
'demo': [],
|
||||||
'test': [],
|
'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