fix: pass labels through translation function (#27252)
This commit is contained in:
parent
88d849320f
commit
88aa7b824e
@ -2,6 +2,7 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe import _
|
||||||
from typing import Dict, List, Tuple
|
from typing import Dict, List, Tuple
|
||||||
|
|
||||||
Filters = frappe._dict
|
Filters = frappe._dict
|
||||||
@ -24,57 +25,57 @@ def get_data(filters: Filters) -> Data:
|
|||||||
def get_columns() -> Columns:
|
def get_columns() -> Columns:
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'label': 'Work Order',
|
'label': _('Work Order'),
|
||||||
'fieldname': 'name',
|
'fieldname': 'name',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'options': 'Work Order',
|
'options': 'Work Order',
|
||||||
'width': '200'
|
'width': '200'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Item',
|
'label': _('Item'),
|
||||||
'fieldname': 'production_item',
|
'fieldname': 'production_item',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'options': 'Item',
|
'options': 'Item',
|
||||||
'width': '100'
|
'width': '100'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Status',
|
'label': _('Status'),
|
||||||
'fieldname': 'status',
|
'fieldname': 'status',
|
||||||
'fieldtype': 'Data',
|
'fieldtype': 'Data',
|
||||||
'width': '100'
|
'width': '100'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Manufactured Qty',
|
'label': _('Manufactured Qty'),
|
||||||
'fieldname': 'produced_qty',
|
'fieldname': 'produced_qty',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Loss Qty',
|
'label': _('Loss Qty'),
|
||||||
'fieldname': 'process_loss_qty',
|
'fieldname': 'process_loss_qty',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Actual Manufactured Qty',
|
'label': _('Actual Manufactured Qty'),
|
||||||
'fieldname': 'actual_produced_qty',
|
'fieldname': 'actual_produced_qty',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Loss Value',
|
'label': _('Loss Value'),
|
||||||
'fieldname': 'total_pl_value',
|
'fieldname': 'total_pl_value',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'FG Value',
|
'label': _('FG Value'),
|
||||||
'fieldname': 'total_fg_value',
|
'fieldname': 'total_fg_value',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': 'Raw Material Value',
|
'label': _('Raw Material Value'),
|
||||||
'fieldname': 'total_rm_value',
|
'fieldname': 'total_rm_value',
|
||||||
'fieldtype': 'Float',
|
'fieldtype': 'Float',
|
||||||
'width': '150'
|
'width': '150'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user