Merge pull request #44602 from frappe/mergify/bp/version-14-hotfix/pr-44582

fix: add doc.status for translation (backport #44582)
This commit is contained in:
ruthra kumar
2024-12-09 12:56:05 +05:30
committed by GitHub
5 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.docstatus import DocStatus
from frappe.utils import flt

View File

@@ -18,7 +18,7 @@
{% if doc.status == "Open" %}
{{ doc.priority }}
{% else %}
{{ doc.status }}
{{ _(doc.status) }}
{%- endif -%}
</span>
</div>

View File

@@ -20,7 +20,7 @@
</div>
{% else %}
<span class="indicator-pill {{ " red" if doc.status=="Open" else "darkgrey" }}">
{{ doc.status }}</span>
{{ _(doc.status) }}</span>
{% endif %}
</div>
{% if doc["_assign"] %}

View File

@@ -8,7 +8,7 @@
</div>
</div>
<div class="col-sm-3">
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{doc.status}}</span>
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{ _(doc.status) }}</span>
</div>
<div class="col-sm-2">
<div class="small text-muted items-preview ellipsis ellipsis-width">

View File

@@ -38,7 +38,7 @@
<input type="text" class="form-control" name="Hours" readonly value= "{{ doc.hours }}">
<label for="status" class="control-label text-muted small">{{ __("Status") }}</label>
<input type="text" class="form-control" name="status" readonly value= "{{ doc.status }}">
<input type="text" class="form-control" name="status" readonly value= "{{ _(doc.status) }}">
<label for="Note" class="control-label text-muted small">{{ __("Note") }}</label>
<textarea class="form-control" name="Hours" readonly> {{ doc.note }} </textarea>