saas deployement - odoo-ps/psbe-process GitHub Wiki

How to deploy a custom module on the SAAS platform

*/!\ Those module cannot contain any python code in python file except odoo.py /!*

1. Install on the target database "base_import_module"

2. Manual Installation

  1. Zip your module
  2. Connect as admin user on the client database, the admin should have "Technical Features" enabled
  3. Setting > Modules > Import Module
  4. In the wizard select your module and click on "Import Module" then "Close"
  5. Setting > Modules > Apply Schedule Upgrade

2bis. Automated Installation

the uploading computer must have the python requests module installed

   sudo pip install requests

in odoo/addons/base_import_module/bin/ , use the script oe_module_deploy.py

  $ ./oe_module_deploy.py 
  usage: oe_module_deploy.py [-h] [--url URL] [--db DB] [--login LOGIN]
                           [--password PASSWORD] [--no-ssl-check]
                           path
  
  Deploy a module on an OpenERP server.
  
  positional arguments:
  path                 Path of the module to deploy

  optional arguments:
  -h, --help           show this help message and exit
  --url URL            Url of the server (default=http://localhost:8069)
  --db DB              Database to use if server does not use db-filter.
  --login LOGIN        Login (default=admin)
  --password PASSWORD  Password (default=admin)
  --no-ssl-check       Do not check ssl cert

Example

./oe_module_deploy.py --url http://localhost:8069 --db upload_test --login admin --password secret test_module
⚠️ **GitHub.com Fallback** ⚠️