Archive

Archive for January, 2011

OpenERP Module Development Wizard

January 28, 2011 19 comments

Today we develop simple wizard call from menu item click. This wizard simply receive the value in text box, and using this value, will change the current user password.

Step 1: Create a folder (e.g. having name abc).

Step 2: Create a file abc_view.xml in abc folder.

Step 4: Write a wizard code  in abc_view.xml like below (also create the __init__.py and  __terp__.py  files i am assuming you create both of these files correctly).

<wizard
string="Change Password"
model="res.users"
name="abc.user.password"
menu="False"
id="wizard_abc_password"/>

Step 5: Write a menu item code in abc_view.xml, set the action attribute of menu item with the wizard id like below

<menuitem
name="Main Menu/User/Change Password"
id="menu_abc_password"
type="wizard"
action="wizard_abc_password"/>

Read more…

Advertisements
Categories: OpenERP, Python, XML

PostgreSQL default password

January 20, 2011 14 comments

Step 1: open terminal

Step 2: su postgres

Note: If you don’t remember the postgres (ubuntu user) password then use the command ‘sudo passwd postgres’

Stept 3: Type ‘psql’ and enter

Step 4: Use the following command to change the posgres user password

alter user postgres with password ‘newpassword’;

‘\q’ is used to exit psql

and Finsish

Categories: Postgresql

Some Sweet Memories

January 10, 2011 Leave a comment

Click To see more

Categories: Personal