Odoo Som Connexió customizations
Project description
This project provides an ERP system for Som Connexio telecommunication users cooperative.
Installation
This package requires Odoo v12.0 installed.
You can install this module using pip
:
$ pip install odoo12-addon-somconnexio
More info in: https://pypi.org/project/odoo12-addon-somconnexio/
DEVELOPMENT
Create development enviornment
Create the devenv
container with the somconnexio
module mounted and provision it. Follow the instructions in odoo-somconnexio-inventory.
Once created, we can stop or start our odoo-sc
lxc container as indicated here:
$ sudo systemctl start lxc@odoo-sc
$ sudo systemctl stop lxc@odoo-sc
To check our local lxc containers and their status, run:
$ sudo lxc-ls -f
Start the ODOO application
Enter to your local machine as the user odoo
, activate the python enviornment first and run the odoo bin:
$ ssh odoo@odoo-sc.local
$ pyenv activate odoo
$ cd /opt/odoo
$ set -a && source /etc/default/odoo && set +a
$ ./odoo-bin -c /etc/odoo/odoo.conf -u somconnexio -d odoo
To use the local somconnexio module (development version) instead of the PyPI published one, you need to upgrade the version in the manifest and then update the module with -u
in the Odoo CLI.
Restart ODOO database from scratch
Enter to your local machine as the user odoo
, activate the python enviornment first, drop the DB, and run the odoo bin to create it again:
$ ssh odoo@odoo-sc.local
$ pyenv activate odoo
$ dropdb odoo
$ cd /opt/odoo
$ ./odoo-bin -c /etc/odoo/odoo.conf -i somconnexio -d odoo --stop-after-init
Deploy branch
For tests purposes, we might want to deploy a given branch (BRANCH
) into a server (staging), instead of publishing a new package release just to test some fix or new feature.
To do so, we need to enter into the server with an authorized user (), and then switch to odoo
user to install with pip the package version found in the git branch.
$ ssh <USER>@staging-odoo.somconnexio.coop
$ sudo su - odoo
$ cd /opt/odoo
$ pyenv activate odoo
$ pip install -e git+https://gitlab.com/coopdevs/odoo-somconnexio@<BRANCH>#egg=odoo12-addon-somconnexio\&subdirectory=setup/somconnexio
At this point we need to restart Odoo to load the new installed module version.
$ sudo systemctl stop odoo
$ ./odoo-bin -c /etc/odoo/odoo.conf -u somconnexio -d odoo --stop-after-init
$ sudo systemctl start odoo
To restart the odoo service it is better to stop it, execute odoo with the upgrade (-u
) option and start it again, rather that just restart
it, in case there are changes in views within the deployed branch.
Run tests
You can run the tests with this command:
$ ./odoo-bin -c /etc/odoo/odoo.conf -u somconnexio -d odoo --stop-after-init --test-enable --workers 0
The company data is rewritten every module upgrade
Update CHANGELOG without running pipeline
If you need to update the CHANGELOG but you don't need to wait for the pipeline to end, you can put [skip ci]
in your commit message and the pipeline will be skiped.
More info in https://docs.gitlab.com/ee/ci/yaml/#skip-pipeline
Credits
Authors
- Coopdevs Treball SCCL
Contributors
- Coopdevs Treball SCCL
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for odoo12-addon-somconnexio-12.0.1.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4956be8ef558cb4e519f1bc7d0acd5e2f40aec9e92072327b013a6fd74f0405f |
|
MD5 | 5ee62b4f7b6b8f6c1e4dd98baf8c58e1 |
|
BLAKE2b-256 | 5b602f0131986659847c3e606ddc62b52d45f5d2329b2ed80049e51c07b61359 |
Hashes for odoo12_addon_somconnexio-12.0.1.1.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c78078f7e36525174a9a1d15f468beba94b875eabd4be82b24230c2ae5ea5e3 |
|
MD5 | 76679fe35052decb44b931a61cb48e79 |
|
BLAKE2b-256 | 7a21a951d259c6c5f942aadec9faff81aae60cde30ca0190800061f5495aa06c |