diff --git a/frappe/docs/user/tutorial/doctypes.md b/frappe/docs/user/tutorial/doctypes.md index b0166109d4..0246385cdd 100644 --- a/frappe/docs/user/tutorial/doctypes.md +++ b/frappe/docs/user/tutorial/doctypes.md @@ -34,21 +34,24 @@ You can also set other properties of the field like whether it is mandatory, rea We can add the following fields: 1. Article Name (Data) -1. Author (Data) -1. Status (Select): For Select fields, you will enter the Options. Enter **Issued** and **Available** each on a new line in the Options box. See diagram below -1. Publisher (Data) -1. Language (Data) -1. Image (Attach Image) +2. Author (Data) +3. Description +4. ISBN +5. Status (Select): For Select fields, you will enter the Options. Enter **Issued** and **Available** each on a new line in the Options box. See diagram below +6. Publisher (Data) +7. Language (Data) +8. Image (Attach Image) + #### Add Permissions -After adding the fields, add Permissions. For now, let us give Read, Write, Create, Delete and Report access to **Librarian**. Frappe has a finely grained Role based permission model. You can also change permissions later using the **Role Permissions Manager** from **Setup**. +After adding the fields, hit done and add a new row in the Permission Rules section. For now, let us give Read, Write, Create, Delete and Report access to **Librarian**. Frappe has a finely grained Role based permission model. You can also change permissions later using the **Role Permissions Manager** from **Setup**. Adding Permissions #### Saving -Click on the **Save** button. When the button is clicked, a popup will ask you for the name. Enter it and save the DocType. +Click on the **Save** button. When the button is clicked, a popup will ask you for the name. Give it the name **Article** and save the DocType. Now login into mysql and check the database table created: @@ -87,7 +90,7 @@ Now login into mysql and check the database table created: 18 rows in set (0.00 sec) -As you can see, along with the DocFields, a bunch of standard columns have also been added to the table. Important to note here are, the primary key, `name`, `owner` is the user who has created the record, `creation` and `modified` are timestamps for creation and last modification. +As you can see, along with the DocFields, several standard columns have also been added to the table. Important to note here are, the primary key, `name`, `owner`(the user who has created the record), `creation` and `modified` (timestamps for creation and last modification). {next} diff --git a/frappe/docs/user/tutorial/models.md b/frappe/docs/user/tutorial/models.md index f8a73564a8..23a4d0882a 100644 --- a/frappe/docs/user/tutorial/models.md +++ b/frappe/docs/user/tutorial/models.md @@ -8,7 +8,7 @@ When you create a **DocType** a new folder is created in the **Module** and a mo ### Developer Mode -To create models, you must set `developer_mode` as 1 in the `site_config.json` file and execute command `bench clear-cache` or use the user menu in UI and click on "Reload" for the changes to take effect. +To create models, you must set `developer_mode` as 1 in the `site_config.json` file located in /sites/library and execute command `bench clear-cache` or use the user menu in UI and click on "Reload" for the changes to take effect. { "db_name": "library", diff --git a/frappe/docs/user/tutorial/naming-and-linking.md b/frappe/docs/user/tutorial/naming-and-linking.md index d9a454eedb..f32c1d12be 100644 --- a/frappe/docs/user/tutorial/naming-and-linking.md +++ b/frappe/docs/user/tutorial/naming-and-linking.md @@ -2,7 +2,7 @@ Then let us create the other DocType and save it too: -1. Library Member (First Name, Last Name, Email ID) +1. Library Member (First Name, Last Name, Email ID, Phone, Address) Doctype Saved