Sie sind auf Seite 1von 11

School Management Application - Part 2 V5.0.

Building a School Management Application

School Management Application - Part 2 V5.0.6

Add 3 objects
1

We use the database designer to define new objects and fields

Let's create the first new object to manage classes : x_training_class

x_training_class

x_training_class

Then click

to save the to

parent record then create the fields.


4

x_name Class Name Always Searchable

Char

School Management Application - Part 2 V5.0.6 5

x_capacity Maximum capacity

Integer

x_beamer Has a beamer

boolean

+
7a

+ then click the create menu button to create the appropriate menu

School Management Application - Part 2 V5.0.6 7b

Classes Configuration

then [TAB]

or to find and select the 'School Management /Configuration' line in the Search menu window Click the 'Create menu' button then

Let's create the second object (x_training_course) to manage courses

x_training_course

x_training_course

Then click

to save the to

parent record then create the fields.


10

x_name Course Title

Always Searchable

Char

School Management Application - Part 2 V5.0.6 11

x_teacher_id Teacher Many2one res.partner.contact

12

x_note Course Description

Text

+
13

x_code Code

Char 16

School Management Application - Part 2 V5.0.6

14

15

Configuration

+[TAB] to

find and select the 'School Management/Configuration' parent menu Courses then click the create menu button
16

17

Let's create the last new object to manage classes : x_training_session

18

x_training_session x_training_session

Then click

to save the to

parent record then create the fields.

School Management Application - Part 2 V5.0.6 19

x_name Session name Char

+
20

x_date_from Date From Always searchable

+
21

datetime

x_date_to Date To datetime

+
22

x_class_id Class many2one

x_training_class

School Management Application - Part 2 V5.0.6 23

x_course_id course many2one x_training_course +

24

x_ Subscribed Students many2many res.partner.contact

+ +
25

then click 'Create a menu' button

26

School

+[TAB] to

select the 'School Management' menu


sessions

then click 'Create menu' button

School Management Application - Part 2 V5.0.6

Manage courses, classes and sessions of courses


27

Define classes Select Classes and add the first new class with the button
28

Open Object created a view by default Class 1


32

+ + second class
29

to add the

Class 2 16

+
30

Define courses

Select Courses and then add the first new course with the button
31

Open Object created a view by default, but it's not very nice! Let's create a new view

Click CUSTOMISE then MANAGE


VIEWS 32a

School Management Application - Part 2 V5.0.6 32b

10

33

34

35

Set the title of the view

Courses

36

Click the last

37

Select the field x_code and click Update

School Management Application - Part 2 V5.0.6 38

11

Click Update Repeat step 36 to 38 for the field x_teacher_id. Click to add a separator and a new line (select separator/new line in node type) Repeat step 36 to 38 for the x_note field (set 4 in colspan) Build the view as shown in step #39

39

40

Use the new view to add a new course

Das könnte Ihnen auch gefallen