openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #06404
Re: Best approach to deploy one module from OCA/GitHub?
Thanks Pedro,
Indeed, the strategy with the symlink is a good solution if we don't
want all others modules listed in Odoo.
As we use Mercurial subrepos, the .hgsub mapping might look like this:
server = [git]git://github.com/odoo/odoo.git
addons_oca_PROJECT_X = [git] git://github.com/OCA/PROJECT_X
addons_oca_PROJECT_Y = [git] git://github.com/OCA/PROJECT_Y
And in this repository, add relative symlinks in our custom addons path
and commit them, at the end we will have this structure:
.
├── addons
│ ├── MODULE_FROM_PROJECT_X (symlink)
│ ├── MODULE_FROM_PROJECT_Y (symlink)
│ └── other_custom_module
├── addons_oca_PROJECT_X
│ └── [...]
├── addons_oca_PROJECT_Y
│ └── [...]
└── server
The configuration file pointing only on our 'addons' directory. Good point.
Regards,
Le 02/07/2014 12:05, Pedro Manuel Baeza Romero a écrit :
Hi all,
You can develop a deployment strategy using symbolic links for desired
modules in only one addons folder, but you have to be very careful,
because there are some modules that have auto_install switch activated,
and you can lose functionality in this case. As Lorenzo has said, is
more or less safety to add full repository to addons_path.
Regards.
2014-07-02 11:35 GMT+02:00 Lorenzo Battistini
<lorenzo.battistini@xxxxxxxxxxx <mailto:lorenzo.battistini@xxxxxxxxxxx>>:
On 07/02/2014 11:20 AM, Sébastien Alix wrote:
For the sake of simplicity, do you clone the whole repository
and add it to the addons_path, even for one module?
Yes, I usually do like that.
Modules in OCA repositories are supposed to not have syntax errors,
so you can add them to available modules and just avoid to install
the modules you don't need.
--
Lorenzo Battistini
Tel (CH): +41 91 210 23 40 <tel:%2B41%2091%20210%2023%2040>
Tel (IT): +39 011 198 25481 <tel:%2B39%20011%20198%2025481>
http://www.agilebg.com
_________________________________________________
Mailing list: https://launchpad.net/~__openerp-community
<https://launchpad.net/~openerp-community>
Post to : openerp-community@lists.__launchpad.net
<mailto:openerp-community@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~__openerp-community
<https://launchpad.net/~openerp-community>
More help : https://help.launchpad.net/__ListHelp
<https://help.launchpad.net/ListHelp>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp
--
Sébastien ALIX
ABF Osiell
Immeuble Oméga
Rue Jean-Marie David
35740 PACÉ, FRANCE
Tél: 09 72 36 91 08
Site: http://www.osiell.com
References