Frappe Content licensed CC-BY-SA 3.0
English
Go to website
Back
Articles on:
Customize OneHash
Learn how to customize OneHash with custom fields, print formats, custom scripts etc.
Server Script
Server Script A Server Script lets you dynamically define a Python Script that is executed on the server on a document event or API To create a Server Script You must set server_script_enabled as true in site_config.json of your site. To add/edit Server Script, ensure your role is System Manager. Create a new server script via "New Server Script" in the toolbar. Set the type of server script (Document Event / API). Set the document type an
Very popular
Custom Scripts
Custom Scripts If you wish to change any OneHash form formats, you can do so by using Custom Scripts. For example, if you wish to add a submit button after saving, to a Lead form, you can do so by creating your own script. ++Home > Customization > Form Customization > Custom Script++ Create a Custom Script (you must have System Manager role for this): Go to
Popular
Customization : DocType
DocType A DocType is the core building block of any application based on the Frappe Framework. It describes the Model and the View of your data. It contains what fields are stored for your data, and how they behave with each other. It contains information about how your data is named. The forms like Sales Order, Sales Invoices, Work Order are added as DocTypes in the backend. DocType allows you to insert custom forms in OneHash as per your requirement. For more understanding on DocTypes,
Popular
Custom Field
Custom Field Every form in OneHash has a standard set of fields. If you need to capture some information, but there is no standard Field available for it, you can insert Custom Field in a form as per your requirement. You can go to Customize Form and add the Field in a particular Form or a Document type (hereafter referred to as DocType) . To access Custom Field, go to: ++Home > Customization > Form Customization > Custom Field
Popular
Documents and Reports : Print Format
Print Formats are the layouts that are generated when you want to Print or Email a transaction. This feature comes handy for all the transactions in OneHash like all the sales and purchase transactions, HR documents and lot more. In OneHash , there are three types of Print Formats, namely, Standard Print Format, Custom Print Format and HTML Print Format. Standard Print Format Every Printable Document Type in OneHash will have it's own Standard Print Format whic
Popular
Customize Form
Customize Form Customize Form is a tool which enables you to make changes to a Form Type or a Document Type (DocType) on the front-end. It allows you to insert Custom Fields as per your requirement or customize the properties of standard fields. Before we venture to learn the Form Customization tool, click here to understand the architecture of forms in OneHash. I
Some readers
Kanban Board
Kanban Board is a tool which will give you a descriptive layout of your data in OneHash based on status and a virtual board. This board shall consist of cards which represent the various Documents listed in a particular Document Type aligned as per the stage of operation of the transactions represented by Status Columns. The card status can be changed easily by dragging and dropping the cards across the board. A Kanban Board helps to visualize, control and optimize work-flow wh
Some readers
Custom Translations
With Custom Translations, user can print the customer's and supplier's document in their local language. For example, if you have customers from Germany and France who want quotations in German and French, it's possible using Custom Translations. 1. Set the Language In the Customer master, select the default Language. Say, the default language for the Customer is Spanish. Same way,
Some readers
Authorization Rule
Authorization Rule allows configuring a custom authorization / approval on a documents, based on conditions defined. Example: If a Sales Order's Grand Total exceeds $1,000, then it should be verified/Submitted by the Sales Manager only, even if Sales User has submit permission. On the same lines, you can define authorization rule based on the fields like Net Total, Grand Total, Discount % and specify who would be document approver if authorization condition is matched.
Some readers
Allow Fields to be changed after Submission
Allow Fields to be Changed After Submission Once a document is submitted, fields are frozen, and no editing is allowed. However, there are certain standard fields like Letter Head, Print Heading which can still be edited. Under Custom Field, if Allow on Submit property is checked, this custom field will be editable even after the document is submitted. To set this property, Go to Customize Form. Select the Form in which you
Some readers
Field types
Field Types The following are the types of fields you can define while creating new ones, or while amending standard ones. Link Link field is connected to another master from where it fetches data. For example, in the Quotation master, the Customer is a Link field. To know more, click here. Dynamic Link Dynamic Link field is one which can search and hold value of any document/doctype. Click here to learn how Dynamic Link Field functions. Check This will enable
Some readers
Documents and Reports : Document Title
You can customize the title of documents based on properties so that you have meaningful information for the list views. For example, the default title on a Quotation is the customer name, but if you are dealing with only a few customers and sending lots of quotations to each customer, you may want to customize. Setting Title Fields From OneHash, all transactions have a 'Title' prope
Some readers
Customizing Data Visibility in Child Tables
Customizing Data Visibility in Child Tables In OneHash, there is a feature called the editable grid. This allows the user to add values in the child table without opening a dialog box/form for each row. This is how the Quotation Item table renders value when the Editable Grid is enabled. It will have a maximum of four columns in the table. As per the default setting, only four columns are listed in
Some readers
Translations
Translations OneHash is available in more than 80 languages most of which has been contributed by OneHash community. Open Translations Tool from the awesome bar Select the language of your choice Click any source message from left sidebar for which you want to add translation. In the Translated Text field enter your suggested translation and click on Suggest. You can click on another source text from left sidebar and add another transla
Few readers
Search Record by Specific Field
Search Record by Specific Field While creating any DocType, you may want to link a particular field to another DocType. For ease in selection, you can also ensure that you are able to see the value of another field of the latter DocType in the search result. Let's assume that you want to see that Item in a Sales Order along with its Item Group. The steps to do this are given below: Step 1: Go to Customize Form ++Home > Customization > Form Customization > Customize Form++ Step 2: Select
Few readers
Add a Custom Button
Add a Custom Button
Few readers
Customizing sorting order in the List View
Customizing Sorting Order in the List View Question: I want records in my Item List sorted based on Descending Order of Item Code. Answers: Following are the steps to customize Sort Order for the Item master. These steps will be applicable for customizing Sort Order for the other documents as well. **Step 1: Go to Customize Form ** Home > Customization > Form Customization > Customize Form **Step 2: Select DocType ** Select document type for which Sort Order is to be customized.  in Customer and Sales Invoice and want to make sure that this value gets updated every time you select a Customer in a Sales Invoice. To configure this, in the Sales Invoice Custom Script, you can add this line: ![]
Few readers
Rename Buttons in Form View
Rename Buttons in Form View In a submitted Sales Order, you can see multiple options under the 'Create' option: You can use this custom script to rename the buttons: Using this script, we have removed/hidden the unwanted buttons, and then renamed one:  doctype Step 2: Script as below & Save
Few readers
Make Read Only After Saving
Make Read Only After Saving Use the method ++cur_frm.set_df_property++ to update the field's display. In this script we also use the islocal property of the DocType to check if the document has been saved at least once or is never saved. If islocal is 1, then the document has never been saved.
Few readers
Date Validation
Date Validation
Few readers
Lock Time Sheets Based on Date
Lock Time Sheets Based on Date Let's say you would like all employees to fill time sheets by Friday of every week. And allow only those users having 'Projects Manager' role to edit or add time sheets for days prior to the latest Friday. Below custom script will implement this feature.
Few readers
Sales Invoice ID Based On Sales Order ID
Sales Invoice ID Based On Sales Order ID The script given below allows you to apply naming series to a Sales Invoice, same as that of the corresponding Sales Order. Sales Invoice uses a prefix M- but the number duplicates itself from the Sales Order Name. Example: If Sales Order ID is SO-12345, then corresponding Sales Invoice ID will be set as M-12345.
Few readers
Restrict User Based On Child Record
Restrict User Based On Child Record
Few readers
Restrict Purpose Of Stock Entry
Restrict Purpose Of Stock Entry
Few readers