From d6d491aee1b6919ea60e03cc1d593f42a9b2b399 Mon Sep 17 00:00:00 2001 From: Valmik Date: Wed, 16 Dec 2015 17:09:16 +0530 Subject: [PATCH 1/4] Added a more specific location to find the file --- frappe/docs/user/tutorial/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From ff8247c2b0309e1e8df1e82a86ea7eeda3780f17 Mon Sep 17 00:00:00 2001 From: Valmik Date: Thu, 17 Dec 2015 13:58:55 +0530 Subject: [PATCH 2/4] Added clearer instructions Improved some text --- frappe/docs/user/tutorial/doctypes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/docs/user/tutorial/doctypes.md b/frappe/docs/user/tutorial/doctypes.md index b0166109d4..a68e323a74 100644 --- a/frappe/docs/user/tutorial/doctypes.md +++ b/frappe/docs/user/tutorial/doctypes.md @@ -42,13 +42,13 @@ We can add the following fields: #### 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 +87,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} From 2daa986a10381b8eefd82849a5142002494dab12 Mon Sep 17 00:00:00 2001 From: Valmik Date: Thu, 17 Dec 2015 14:43:48 +0530 Subject: [PATCH 3/4] Added row names to reflect the database Added missing row names that were in the database and in the next tutorial steps. --- frappe/docs/user/tutorial/doctypes.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frappe/docs/user/tutorial/doctypes.md b/frappe/docs/user/tutorial/doctypes.md index a68e323a74..0246385cdd 100644 --- a/frappe/docs/user/tutorial/doctypes.md +++ b/frappe/docs/user/tutorial/doctypes.md @@ -34,11 +34,14 @@ 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 From fcb5cc2c211724319fa9b9740ada23567210f749 Mon Sep 17 00:00:00 2001 From: Valmik Date: Thu, 17 Dec 2015 14:59:39 +0530 Subject: [PATCH 4/4] Added missing fields --- frappe/docs/user/tutorial/naming-and-linking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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