TODO: branch will be switched from o8 to master like all other branches for master repo fundraising_studio
This repository is used as a codebase for FS-Online instances and the related setup tools. The o[0-9]+ branches of this repo are always deploy-able production ready branches.
The default latest stable branch is called o[0-9]+ e.g.: o8 or o9. where the number after o stands for the odoo version. The other branches in the github repository are development branches in the form of o8_[ISSUENUMBER][OPTIONALDESCRIPTION] e.g.: o8_123 or o8_123_shoptemplates or without an Github Issue o8[DESCRIPTION]
Examples:
- o8 = Master Branch for FS-Online for odoo Version 8
- o9 = Master Branch for FS-Online for odoo Version 9
- o8_256 = Development or Bugfix Branch related to github issue 256 to be merged into o8 Master Branch
- o8_fixsendmail = Development or Bugfix Branch without an issue to be merged into o8 Master Branch
- o9_123_addfreetoshop = Development or Bugfix Branch related to github issue 123 to be merged into o9 Master Branch with optional description
Release tags must have the form [BRANCH]r[COUNTER] e.g.: o8r1 or o9r23
Simple setup and maintenance through odoo-tools.sh. odoo-tools.sh is a simple setup script that is able to:
- prepare (DEPRICATED by Saltstack) an ubuntu 14.04 LTS server to run odoo v8 (libs, tools, settings)
- setup/download (DEPRICATED by Saltstack) the odoo code base for odoo v8 from github
- newdb (DEPRICATED by Saltstack) create a new odoo instance:
- linux user
- database creation
- postgres user
- server.conf und server.init
- etherpad
- owncloud
- nginx setup (match urls to instance via vhosts) and setup default URLs e.g.: ahch.datadialog.net, aswidget.ahch.datadialog.net, cloud.ahch.datadialog.net, pad.ahch.datadialog.net
- backup and logrotate cron jobs
- create and link custom-addons githup repository into the instance addons folder
- Install push-to-deploy workflow for updating the custom addons folder
- maintenancemode (DEPRICATED by Saltstack) set one or all instances into maintenance mode (not reachable from the outside)
- backup one or all instances
- restore one or all instances
HINT: db-tools.sh is used by odoo-tools.sh to backup and restore the database and data-dir of an instance.
Development is all done locally on mac or linux machines with pycharm.
# 1.) Clone the branch o8 locally:
git clone -b o8 https://github.com/OpenAT/online
git submodule update --init --recursive
git branch -avv
# 2.) Create and checkout a new branch:
# Optional Create a new Issue in Github First for the issue number
git branch o8_ckeditor_advanced
git checkout o8_ckeditor_advanced
# 3.) Push your Branch to Github (so everybody knows what you are working on)
git commit
git push origin o8_ckeditor_advanced
# 4.) Do stuff and commit and push changes until ready:
git add [file or folders] # This tells git what to include in next commit
git commit -m "[ADD] Added README.md"
git push origin o8_ckeditor_advanced
# 5.) Merging the Branch
# 5.1) Update master branch first
git fetch
git checkout o8
git pull
# 5.2) Rebase development branch on master branch (o8) to add possible changes, avoiding merge confilcts later on!
git checkout o8_ckeditor_advanced
git rebase o8
git submodule update
# 5.3) Locally merge the Development Branch (o8_ckeditor_advanced) into the master branch (o8)
# !!! OR Create a Pull request in Github which is the prefered method !!!
git checkout o8
git merge o8_ckeditor_advanced
git push origin master
# This is an example how to add a submodule with the submodule branch master:
git submodule add -b master https://github.com/ether/etherpad-lite.git etherpad-lite
# Update all submodules
git submodule update --rebase --remote --recursive
git checkout o8
git pull
git submodule update --remote --rebase --recursive
git commit -am "[UPDATE] all submodules updated"
git push origin o8
- Latest Dev Docu
- odoo v8 api guidelines
- Technical Memento
- eval many2many write
- WebApps Tutorial HBEE
- Forum how to's
- https://www.odoo.com/forum/help-1/question/how-can-i-save-load-my-own-configuration-settings-30123
- https://www.odoo.com/forum/help-1/question/how-can-i-create-own-config-for-my-custom-module-41981
- https://www.odoo.com/forum/help-1/question/is-it-possible-to-set-database-default-configuration-values-507
- https://doc.odoo.com/6.0/developer/5_16_data_serialization/xml_serialization/
- http://stackoverflow.com/questions/9377402/insert-into-many-to-many-openerp/9387447#9387447
- carddav for odoo
- http://odoohub.wordpress.com/2014/08/15/where-is-the-odoo-documentation/
- http://djpatelblog.blogspot.in/2014/09/odoo-new-api-recordsets.html
- server.conf db_filter= parameter