fix: make company field mandatory in project doctype

This commit is contained in:
Gursheen Anand 2023-06-30 12:54:45 +05:30
parent ce252a0d45
commit 84d4888f5f
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
"fieldtype": "MultiSelectList",
get_data: function(txt) {
return frappe.db.get_link_options('Project', txt, {
company: ["in", [frappe.query_report.get_filter_value("company"), ""]],
company: frappe.query_report.get_filter_value("company")
});
},
},

View File

@ -289,7 +289,8 @@
"fieldtype": "Link",
"label": "Company",
"options": "Company",
"remember_last_selected_value": 1
"remember_last_selected_value": 1,
"reqd": 1
},
{
"fieldname": "column_break_28",