Git Management
by T.V.T Marine Automation (aka TVTMA) https://viindoo.com/apps/app/16.0/to_git , Viindoo https://viindoo.com/apps/app/16.0/to_git$ 127.27
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Community Apps Dependencies | Show |
Lines of code | 3746 |
Technical Name |
to_git |
License | OPL-1 |
Website | https://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
- Community Edition
- Enterprise Edition
Installation
- Navigate to Apps.
- Search with keyword to_git.
- 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.
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.
Once done, there will be 2 RSA Key files created in the selected folder.
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.
From here, add the following information:
- Title;
- Key type: Authentication key;
- Key: Copy contents in the id_rsa.pub file and paste it here.
Press Add SSH Key to save the changes You will be asked to type in your Github account password to authorize this modification.
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.
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.
Press Save to record the modification.
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.
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.
Press Edit, select the branch that you want to pull code and click Checkout.
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