BumQ

วันพฤหัสบดีที่ 12 มกราคม พ.ศ. 2555

OpenERP TV Tutorial

Part I
1  Create a new database
      minimal profile
         
2 Log into openerp GTK with the db created above.        
3  install module base_contact

4 Create new Menu

5 Menu:  Partners/contacts (Click on contacts --> from menu Form choose 
         Switch to list/form --> 
                 now click new buttom
                 fill-in the field as follow
         Menu: School Management
         Sequence: 10            
                 Parent Menu:
                 Action: ir.action.act_window - Customers Partners
                 ( click on the folder to find Customers Partners)
                 then Save.
                 
                 Click new buttom
                 Complete Name: ( the system will fill the name )
                 Menu: Configuration
         Sequence: 10            
                 Parent Menu: School Management
                 Action: ir.action.act_window - Customers Partners
                 save.
Go back to Menu and reload and School Management/Configuration should be there. 
Cheers!

Let open the openERP Web to the database we are working on.
We are going to customize the contacts.
>From Main Menu select Partners/contacts (click on contact and change into Form 
>View, on the bottom left hover over [CUSTOMISE] and select MANAGE VIEWS.

>From there the Manage Views(res.partner.contact) will open 
choose edit because (res.partner.contact.form is the default). 

The View Editor 134 - res.partner.contact become visible.
The page that come up is XML code. Find the line that said
<field> and click on the + sign to the right (on the same line).
when the + sign is click that bring the properties window select new field and 
fill in the data 
Name: x_student 
Field Label: Is a student 
Field Type: boolean 
Save, Update,Update that bring you back to the view editor.

Repeat the same process for teacher but click the + sign on the line 
<field>.        
the data to be enter is  
Name: x_teacher 
Field Label: Is a teacher 
Field Type: boolean
Save, Update,Update
 
them close the view editor. (Review your work)
Partner/contacts  click Form View
Now we can select contacts as being a student or teacher.

Let create a new student:
Main Menu -- Partners/contacts  click on the new buttom and create a sample 
student or teacher.

Creating a menu for teachers and students.
Main Menu -- Partners/Contacts (click on the icon that look like notebook and 
not on the word contacts to select it, them hit Switch (top right) a menu come 
up.

we are going to Save the current Menu, click on Save
them on Duplicate.
Now enter your data to create the menu
 
Menu: Students 
Parent Menu: School Management( click on the search buttom to find it)
Save & Edit
Let change the action, click on the search icon on the Action line
The Search Open Window come up, click on New and enter the following data
  
Action Name: Students
Object: res.partner.contact

Save ---> Save ---> Duplicate (we are going to do the same for teacher)

Menu: Teachers
Parent Menu: School Management  
Save & Edit

action ir.action.act.window - contacts    Search --> New
enter the following data

Action Name: Teachers
Object: res.partner.contact
Save
Save
Go back to Main Menu --> School Management (Configuration,Students,Teachers)
take a break, the end of part I.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น