Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7138 Näkymät

Hello, I need to update couple of community modules directly at the server for my own v7 installation. This due to the 3 user limitation of the easy installation via the web client, I have 4 users... = (. So how to do this the easy way? I found "OpenERP Community Repositories Installer" but cannot judge whether that is the best option available even if it looks feasible. Are there other ways to get this done (with step-by-step instructions)?

Here the link: launchpad.net/openerp-community-repo-installer

Your support is highly appreciated.

Avatar
Hylkää
Paras vastaus

Hi;

You can do the update for the community modules by this way, but don't miss to follow the instructions provided in the "README.rst" file, especially the following:

Edit /etc/openerp/openerp-server.conf and add this line::

    addons_path = OFFICIAL_PATH,/opt/openerp-community-repo-installer/addons

Remember to replace ``OFFICIAL_PATH`` with the path to your official addons
(Usually ``/usr/lib/pymodules/python2.7/openerp/addons``).

Foe marko: The answer above, is just to tell that this update method can be used ...

But personnaly, i find that the easy and recommended way for updating modules in OpenERP is by using "Bazaar Explorer", and to not update branches directly in the .../openerp/addons/... folder, but create a folder for each branch somewhere (eg. /home/your user/addons-update/your branche name/.

Copy (only) the needed modules to your ../openerp/addons/.... folder, Update Modules List and install the module you want.

Before any update (just in case ...), backup you addons folder (or at least the folder of the module you want to update).

Avatar
Hylkää
Tekijä

Thanks for the reply. One more question related to the 'readme' file. At rows 84-128 you have lengthy explanation about repos and users, can that be ignored or if not what is that section for?

Paras vastaus

If you have access to the server (e.g. FTP): you can try the following steps.

In a terminal on your server:

  1. Download the community modules
  2. Copy the module folders to the addon folder of the OpenERP folder
  3. If necessary, correct the owner and the authorizations for those module folders (chown and chmod commands)
  4. Restart openerp server with sudo service openerp-server restart

In a web browser:

  1. Log in to OpenERP as administrator
  2. Go to Settings - Modules - Update Module List and click on Update
  3. Go to Settings - Modules - Installed Modules
  4. Locate your module. If required, remove the filter 'Installed' in the topright corner.
  5. Open the module and click Upgrade
  6. Repeat step 4 and 5 for all modules that need updating

Good luck.

Bart

Avatar
Hylkää
Tekijä

Thanks for the reply. Reg. steps 1-2, could you kindly instruct how exactly to carry out the these steps i.e. which commands to use. As you see, I'm Linux newbie...

I am a Linux 'tourist' as well. This is my preferred way of working: (1) download the addons on your regular machine (2) transfer them (e.g. with Filezilla or another FTP app) to your Linux server, e.g. to the home directory of your Linux user. In my case, the files are put in /home/admin (3) open a terminal to your Linux server (4) use the command 'sudo cp /home/admin/<name_of_the_module_dir> <complete_path_to_your_addon_dir>. On my server, I have 'cp /home/admin/<example> /opt/openerp/server/openerp/addons' (5) restart OpenERP server 'sudo service openerp-server restart' (6) continue in web

Tekijä

Thanks Bart. Still some challenges to get there. How do you download e.g. module "tr_barcode" i.e. repository "lp:stock-logistic-barcode/7.0" to your own laptop/PC? I cannot find any 'download' option when checking from code.launchpad.net/stock-logistic-barcode. I have the step 2 Filezilla working so I would be able to transfer the files to my OpenERP server.

Check this: https://www.openerp.com/apps/7.0/tr_barcode/. I get all addons from this source (regular download, no launchpad stuff)

Tekijä

Thanks again! Worked fine. Soon to the next steps...

Tekijä

Hello. Finally I had possibility to test above. And it worked out! Couple of things I had to do on top of above: 1) had to change the user rights via chmod -R 777 command 2) In the frontend application update the modules list before installing it. Again, thanks for the help!

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
jouluk. 22
13655
3
tammik. 24
17925
0
maalisk. 15
4290
1
kesäk. 24
10824
1
elok. 24
3099