v 16.0 Third Party
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3746
Technical Name to_git
LicenseOPL-1
Websitehttps://viindoo.com/apps/app/16.0/to_git
Versions 16.0 12.0 14.0 15.0 11.0 10.0 13.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3746
Technical Name to_git
LicenseOPL-1
Websitehttps://viindoo.com/apps/app/16.0/to_git
Versions 16.0 12.0 14.0 15.0 11.0 10.0 13.0

What it does

  • Git is a distributed code version control system that uses Git Repositories to store the change history. Each repository contains Branches - which represent specific versions of that repository, forked from the main project. Developers can test changes on these Branches without interfering with other developers' code.
  • By default, developers will have to manually update changes in Git into their Odoo software, which is a waste of time and resources. This module is built to integrate Git with Odoo.

Key Features

  • Scan a Git Repository for a list of branches.
  • Create respective branches in Odoo.

Note

  • This module requires a gitpython library which could be installed by running the command 'pip install gitpython'.

Known Issues

  • Remote Git repository authentication is not supported yet. In the case of a private repository, please use the SSH protocol.

Supported Editions

  1. Community Edition
  2. Enterprise Edition

Installation

  1. Navigate to Apps.
  2. Search with keyword to_git.
  3. Press Install.

Instructions

1. Create RSA Key

Navigate to the Terminal on your computer, run the following command: ssh-keygen -m PEM -t rsa -b 4069 -C "personal email used to create a Github account" then press Enter.

Run code line to create RSA Key

Create a folder to save the RSA Key in your system and add the URL to the Terminal using the /home/your_computer_account_name/folder_name/id_rsa structure. E.g: /home/example/rsa_key/id_rsa. Press Enter and your computer's password. Press Enter again to confirm the password.

Create a folder to store the RSA Key

Once done, there will be 2 RSA Key files created in the selected folder.

Created RSA Key

2. Add RSA Key to the Github account

In your Github account, go to Setting > SSH and GPG keys, press New SSH Key to generate a new SSH Key.

Generate new SSH Key on Github

From here, add the following information:

  • Title;
  • Key type: Authentication key;
  • Key: Copy contents in the id_rsa.pub file and paste it here.
SSH Key on github

Press Add SSH Key to save the changes You will be asked to type in your Github account password to authorize this modification.

Newly created SSH Key on github

3. Add RSA Key to the Viindoo software

Go to the system, in your personal account, select Preferences > tab Preferences, in the SSH Keys section, press Add a line.

Personal preferences on Viindoo ERP Add SSH Key to the Viindoo ERP

In the Private key field, press Upload your file and select the id_rsa file. Similarly, upload the id_rsa.pub file then Save & Close.

Add RSA key file

Press Save to record the modification.

Save SSH Key information

4. Pull code from a repository to the system

Access to Git > Git Repository, press Create to create a new git branch on your system. From here, add the SSH Key path off your repository to the Remote URL section. Press Save to record the information.

Pull code to git repository in Viindoo ERP software

Click on Scan for Branches to pull code of all versions of this repository to the system. All the branches of this repository will be available at the Branches tab.

List of pulled branches

Press Edit, select the branch that you want to pull code and click Checkout.

Checkout a git branch

Use this module together with the to_odoo_module module to create an app with different versions.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.