'embed all require files'

def add_custom_script(self):

    custom = (frappe.db.get_value(u'Custom    Script', {u'dt': self.name, u'script_type': u'Client'}, u'script') or u'')
    self.set(u'__custom_js', custom)
