terms view added
This commit is contained in:
parent
e1d620b168
commit
8ca547b7f2
@ -12,3 +12,15 @@ cur_frm.cscript.job_applicant = function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur_frm.cscript.terms = function() {
|
||||||
|
frappe.call({
|
||||||
|
doc: cur_frm.doc,
|
||||||
|
method: "set_view_terms",
|
||||||
|
callback: function(r) {
|
||||||
|
if(!r.exe){
|
||||||
|
refresh_field("view_terms");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
@ -153,6 +153,20 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"precision": ""
|
"precision": ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "company",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Company",
|
||||||
|
"options": "Company",
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_14",
|
||||||
|
"fieldtype": "Section Break",
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": ""
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"allow_on_submit": 0,
|
"allow_on_submit": 0,
|
||||||
"fieldname": "terms",
|
"fieldname": "terms",
|
||||||
@ -173,6 +187,14 @@
|
|||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"set_only_once": 0
|
"set_only_once": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "view_terms",
|
||||||
|
"fieldtype": "Text Editor",
|
||||||
|
"label": "View Terms",
|
||||||
|
"options": "view_terms",
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": ""
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "amended_from",
|
"fieldname": "amended_from",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
@ -191,7 +213,7 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"modified": "2015-03-04 15:51:12.341615",
|
"modified": "2015-03-04 16:30:16.012258",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"name": "Offer Letter",
|
"name": "Offer Letter",
|
||||||
@ -229,5 +251,5 @@
|
|||||||
"read_only_onload": 0,
|
"read_only_onload": 0,
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"title_field": "job_applicant"
|
"title_field": "applicant_name"
|
||||||
}
|
}
|
@ -11,3 +11,6 @@ class OfferLetter(Document):
|
|||||||
|
|
||||||
def set_applicant_name(self):
|
def set_applicant_name(self):
|
||||||
self.applicant_name = frappe.db.get_value("Job Applicant", self.job_applicant, "applicant_name")
|
self.applicant_name = frappe.db.get_value("Job Applicant", self.job_applicant, "applicant_name")
|
||||||
|
|
||||||
|
def set_view_terms(self):
|
||||||
|
self.view_terms = frappe.db.get_value("Terms and Conditions", self.terms, "terms")
|
Loading…
x
Reference in New Issue
Block a user