I am using Ubunto, postgres,pgadmin III administration tool and Aptana Studio 3 as openErp framework.
To create a module First create a folder in openErp Server/bin/addons, let say "my_module"
in that folder create
1. __init__.py python module descriptor file, in that class import your python main functional class like "import myclass" as you will name the python file in next step.
2. Create a python file save as myclass. This class will contain your main functionality.
3. Create __openerp__.py file that is your module descriptor file which determines xml files that will be parsed during initialization of server, and the dependencies of the created module. for help see any __openerp__.py file of any module present in the addons folder.
4. Create an xml file for initialization, demonstration or any reports, wizards, workflows declaration. for help see xml file of any module present in the addons folder.
5. add your xml file name in the __openerp__.py file in update_xml
These are the main steps that will you do whenever you create a new module. Start the openerp server then the client then go to administration, update module list, after update search your module in the module's list then schedule upgrade it, start configuration and you will see you module in the menu.
Once you have created a module you can also modify it but whenever you make a change in your python file you have to restart server plus update your module configuration and if you modify xml file then there is no need to restart the server just update your module.
Is it difficult to setup Aptana for working with OpenObject? What is procedure? Why Aptana, why not Eclipse?
ReplyDeleteIs it difficult to get OpenObject in Aptana? Could you please write a procedure.
ReplyDelete