Skip to content

eretvekasap/template-project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Project

Template for an Odoo project.

Prerequisites

For Ursa employees, run the Install Job on Jenkins. Otherwise look at the INSTALL file.

Configuration

  • Add your version of Odoo, modules and Python dependencies in requirements.txt

Build your development environment

$ ./build.sh

and start Odoo

$ ./env/bin/odoo -c odoo.conf

For custom module

  • Create a new branch and add your module in src/custom-addons
  • Add your module as a dependency of the customer module
  • Push your branch and create a pull request against develop

For contributed module

  • Create a new branch in src/ and add your module
  • Create the setup directory
$ cd src/<repo>/setup
$ mkdir -p module_name/odoo/addons
$ ln -s ../module_name module_name/odoo/addons/.
$ vi module_name/setup.py
import setuptools

setuptools.setup(
    setup_requires=['setuptools-odoo'],
    odoo_addon=True,
)
$ vi module_name/odoo/__init__.py
__import__('pkg_resources').declare_namespace(__name__)
$ cp module_name/odoo/__init__.py module_name/odoo/addons/__init__.py
  • Commit your changes and push your module to Github
  • In Github (http://github.com/ursais/repo), create a pull request against the corresponding OCA repository
  • Add your module as a dependency of the customer module
  • Push your branch and create a pull request against develop

Deploy to an environment

For Ursa employees, run the <Project>_Deploy Job on Jenkins. Otherwise:

  • Pull the repo

$ git pull

  • Update the environment

$ . env/bin/activate && pip install -r requirements.txt

  • Restart Odoo

# service odoo restart

About

Template for an Odoo project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.1%
  • Python 43.9%