Tweaks per "delete products" batch
This commit is contained in:
parent
34623a7307
commit
ff904d840f
|
@ -53,6 +53,7 @@ class DeleteProductBatchView(BatchMasterView):
|
|||
'size',
|
||||
'department_name',
|
||||
'subdepartment_name',
|
||||
'present_in_scale',
|
||||
'status_code',
|
||||
]
|
||||
|
||||
|
@ -67,6 +68,7 @@ class DeleteProductBatchView(BatchMasterView):
|
|||
'department_name',
|
||||
'subdepartment_number',
|
||||
'subdepartment_name',
|
||||
'present_in_scale',
|
||||
'status_code',
|
||||
'status_text',
|
||||
]
|
||||
|
@ -74,7 +76,7 @@ class DeleteProductBatchView(BatchMasterView):
|
|||
def row_grid_extra_class(self, row, i):
|
||||
if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
|
||||
return 'warning'
|
||||
if row.status_code == row.STATUS_DEPARTMENT_NOT_ALLOWED:
|
||||
if row.status_code == row.STATUS_DELETE_NOT_ALLOWED:
|
||||
return 'notice'
|
||||
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ class DepartmentView(MasterView):
|
|||
'product',
|
||||
'personnel',
|
||||
'exempt_from_gross_sales',
|
||||
'allow_product_deletions',
|
||||
]
|
||||
|
||||
def configure_grid(self, g):
|
||||
|
|
Loading…
Reference in a new issue