Skip to Content
Menú
This question has been flagged
3 Respostes
14996 Vistes

Relatively new to Odoo.sh and github. Need a clear process to follow when performing development using Odoo.sh and github.

When making enhancements to a module I do understand the standards and rules. What is unclear is the git process.

I have been successful in Odoo.sh with the following process, but somehow I ended up with a fatal: not a git repository: error.

This is the process I have been following:

1. Using the odoo editor I make my changes to my xml and py files in my ~/user/[custom_module].

2. Using the webshell, I use git checkout to insure I'm on the correct branch

3. Use git add - To add my changes to git

4. Use git commit - To commit my changes to the branch

5. Use git push https - To push my changes to the branch

This process has worked three times with the branch that I have been working on, then things began to go sour. I'm looking at deleting my repository and starting all over again. But before I go down this road again, I would like to find or create a document on the proper steps for development in Odoo.sh.

Any suggestions?


Avatar
Descartar
Best Answer

Hi,

You can refer our following blog regarding the deployment of a module in Odoo.sh

Odoo.sh module deployment

Regards

Avatar
Descartar
Best Answer

Hi Jeff: 

​Github Desktop is a free git client that you can download from github.com and use for your development activities. I have not tried it with odoo.sh per se but it works like a charm with github and any standard git repository.

Avatar
Descartar
Autor Best Answer

Ok, well I created a new repository in Odoo.sh. Performed my changes, committed and pushed the changes. Of course, I still have an issue with my build and need to make another change. Problem is, git is no longer assigned to the original branch. If I attempt to $git checkout Project1, I receive the message:

fatal: 'Project1' is already checked out at '/home/odoo/containers/........

This is highly frustrating when just trying to develop. How do you release the container, or better yet, Make changes, test changes, when everything is good, than perform a commit and push. If each time I perform a change I need to re-create the original repository, development will take 10 fold longer.


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de març 25
395
0
d’abr. 24
1095
1
de febr. 24
1442
1
d’oct. 20
4116
3
de jul. 20
4717