Add warning highlight for pricing batch row if can't calculate price
This commit is contained in:
parent
3e98b24492
commit
25492cc0e8
|
@ -90,6 +90,8 @@ class PricingBatchView(BatchMasterView):
|
||||||
if row.status_code in (row.STATUS_PRICE_INCREASE,
|
if row.status_code in (row.STATUS_PRICE_INCREASE,
|
||||||
row.STATUS_PRICE_DECREASE):
|
row.STATUS_PRICE_DECREASE):
|
||||||
attrs['class_'] = 'notice'
|
attrs['class_'] = 'notice'
|
||||||
|
elif row.status_code == row.STATUS_CANNOT_CALCULATE_PRICE:
|
||||||
|
attrs['class_'] = 'warning'
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
def _preconfigure_row_fieldset(self, fs):
|
def _preconfigure_row_fieldset(self, fs):
|
||||||
|
|
Loading…
Reference in a new issue