Odoo Help

2

0
1 Answer
4
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
22835
| 9 9 12
Turnhout, Bélgica
--Yenthe Van Ginneken--

My Odoo training platform: https://www.oocademy.com
My Odoo blog: http://www.odoo.yenthevg.com/
My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
07/08/18 02:00

Hi Jean,

You can't do this on Odoo.sh itself. You need to do it directly on the Github repository from which you create the Odoo.sh builds. If you commit the changes there (either through the Github website or command line) you'll be able to load the package when Odoo.sh creates a build.

Regards,
Yenthe


EDIT: Please review the documentation at Odoo.sh v11 Documentation

The section Your First Module discusses the use of requirements.txt

2 Comments
Jean Donaires
07/08/18 14:21

Thanks for the reply @Yenthe.

But could you help me out understanding it a little bit better? On Odoo.sh, every time i create a new branch it just comes empty on GitHub. Even the master (according to the dashboard Odoo.sh gives you). I understand all my branches are just copies of the Odoo.sh enterprise github repository, but without the option to edit it's core code directly (since it is hidden somehow). Then how can I edit the requirements.txt files if it's not on any of the branches I create on Odoo.sh? Should I just create a new branch and then create a 'requirements.txt' file with the libraries I want the server to install? Also, the Odoo documentation says the server will install the new libraries automatically, but how can I make sure it is installed? Do I have to follow a part of the documentation I'm missing? Or is it installed automatically once I do a commit? Any answer would be really helpful. Thanks in advance.

Best regads.

Jean.

Yenthe Van Ginneken
08/08/18 02:46

Hi Jean,

Yes, you'll need to manually add a requirements.txt file inside every branch where you want to use the packages for. There is no way to do it from the Odoo.sh frontend (up untill now atleast).

Once you commit the requirements.txt file with your dependencies they will be automatically installed from that commit (build) on for all the upcoming builds. If you really want to double check and verify them you can look in the "pip.log" file and/or open the terminal to check from there.

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now