Monday, 9 September 2013

OpenERP XML + ORM Templates for Eclipse

Steps to apply OpenERP XML + ORM Templates for Eclipse

Template for eclipse of openERP code snippets. This snippets are build to help rapid building openERP project with great ease.  
 

1: You may get templates from svn repository.

2: After downloading the repository, start your eclipse and go to menu "Window --> Preferences".

3: To apply template for ORM, in Preferences window, click on "PyDev-->Editor" and go to "Templates" (PyDev-->Editor-->Templates).

    3.1: Click on 'Import' button and then select "templates-openerp.xml" file and press "OK".
4: To apply template for ORM, in Preferences window, click on "XML-->XML Files-->Editor" and go to "Templates" (XML-->XML Files-->Editor-->Templates).

    4.1: Click on 'Import' button and then select "Openerp-eclipse-xml-template.xml" file and press "OK".

5: Now you can use snippets in .py or .xml files.


See Videos

How to apply openERP XML+ORM Templates in eclipse

 How to use openERP XML+ORM Templates in eclipse

Tuesday, 3 September 2013

socket.error: [Errno 98] Address already in use in OpenERP

  
This error mainly raised when another process listening on port 

Solution:

 
Change the port number for OpenERP or kill that running process and restart it again, this two hints will resolve the problem.

There are several process running on your system so first Find the process which uses the port number of OpenERP and list out that process id .For do this open your terminal and type following commend


     ps aux | grep openerp 
    
just verify the process id of that OpenERP process.

address_already_in_use_in_openerp



 

Kill the process which uses the port number of OpenERP by the following command in terminal.

       sudo kill -9 procees id [ex: sudo kill -9 3550 where 3550 is process id]

Then Restart the openerp-server .now error solved .

        sudo /etc/init.d/openerp-server restart
              
If you do not want to kill process than you can also stop OpneERP process by this command.it will also resolved this error

        sudo /etc/init.d/openerp-server stop


Thanks

Sonu Chaudhary