fix: incorrect indicator title for portal sales order (#39247)
This commit is contained in:
parent
5e0d017497
commit
2d2ff7cf52
@ -582,17 +582,17 @@ class SalesOrder(SellingController):
|
|||||||
|
|
||||||
def set_indicator(self):
|
def set_indicator(self):
|
||||||
"""Set indicator for portal"""
|
"""Set indicator for portal"""
|
||||||
if self.per_billed < 100 and self.per_delivered < 100:
|
self.indicator_color = {
|
||||||
self.indicator_color = "orange"
|
"Draft": "red",
|
||||||
self.indicator_title = _("Not Paid and Not Delivered")
|
"On Hold": "orange",
|
||||||
|
"To Deliver and Bill": "orange",
|
||||||
|
"To Bill": "orange",
|
||||||
|
"To Deliver": "orange",
|
||||||
|
"Completed": "green",
|
||||||
|
"Cancelled": "red",
|
||||||
|
}.get(self.status, "blue")
|
||||||
|
|
||||||
elif self.per_billed == 100 and self.per_delivered < 100:
|
self.indicator_title = _(self.status)
|
||||||
self.indicator_color = "orange"
|
|
||||||
self.indicator_title = _("Paid and Not Delivered")
|
|
||||||
|
|
||||||
else:
|
|
||||||
self.indicator_color = "green"
|
|
||||||
self.indicator_title = _("Paid")
|
|
||||||
|
|
||||||
def on_recurring(self, reference_doc, auto_repeat_doc):
|
def on_recurring(self, reference_doc, auto_repeat_doc):
|
||||||
def _get_delivery_date(ref_doc_delivery_date, red_doc_transaction_date, transaction_date):
|
def _get_delivery_date(ref_doc_delivery_date, red_doc_transaction_date, transaction_date):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user