Hi All,
I am not able to see the Item Name and Item Description Material Request, Purchase Order and so many other documents.
I tried making it visible via Customize Form (In List View=Yes)
But after that also, I am not able to view it.
May anyone can help me in this context?
Regards
Ruchin Sharma
Can you share a screen shot
@arghya.basu
I am sorry, I didn’t share the same.
Here it is:
Regards
Ruchin Sharma
It might be because of Setup-> Stock-> Stock Settings, “Item Naming by” is through Item Code and not through Naming Series. I’m not sure, you can check that.
@arghya.basu
No its not from there.
That is required for the purpose of generating the naming series of a document.
Regards
Ruchin Sharma
I tried the below code but it is also not helping me out.
frappe.ui.form.on("Material Request", "onload", function(frm) {
frappe.form.link_formatters['Item'] = function(value, doc) {
return value + " - " + doc.items.item_name;
}
});
Regards
Ruchin Sharma
Hi,
Does anyone have any idea about this?
Regards
Ruchin Sharma
Hi,
I tried this also, but still it is not working.
frappe.ui.form.on("Material Request", "onload", function(frm) {
frappe.form.link_formatters['Item'] = function(value, doc) {
return value + ': ' + doc.item_name;
}
});
Regards
Ruchin Sharma
Hi,
I am able to solve the issue with the below code but still not satisfied with it.
Actually after this code the Item Code and Item Name comes in different columns whereas I want it to be in the same column.
frappe.ui.form.on("Material Request", "onload", function(frm) {
frm.get_field('items').grid.editable_fields = [
{fieldname: 'item_code', columns: 2},
{fieldname: 'item_name', columns: 2},
{fieldname: 'qty', columns: 2},
{fieldname: 'warehouse', columns: 2},
{fieldname: 'schedule_date', columns: 2},
];
frappe.form.link_formatters['Item'] = function(value, doc) {
return value + ': ' + doc.item_name;
}
});
Whereas I want it to be like this:
Any idea about this?
Regards
Ruchin Sharma
Hello,
I am exactly looking forward to do same thing as you stated. Any luck?
Can you please share your solution?
Thanks.
Hi @rushabh_shah82
Change the value of column in Customize Form the total of all should not exceed 11.
Regards
Ruchin Sharma
1 Like
This solved my issue. Thanks much.