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